fbs/fontandbitmapserver/sfbs/patchableconstants.cpp
author MattD <mattd@symbian.org>
Mon, 08 Feb 2010 18:18:38 +0000
branchNewGraphicsArchitecture
changeset 2 31d73acc5459
parent 0 5d03bc08d59c
child 36 01a6848ebfd7
child 163 bbf46f59e123
permissions -rw-r--r--
Improved debugging for Bug 1530 - Panic during startup: ALF EGL 1

// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// Defines all the patchable constants in fbserv.exe.
// The definition of the constants must not be in the same file as the usage,
// or the compiler will optimise them out, so put them all in here.
// Note that existing patchable constants are declared as global,
// i.e. not in a namespace, so I have continued the trend.
// 
//

#include <e32def.h>


/**
@SYMPatchable
@publishedPartner
@released

This constant determines the maximum size of the shared heap in the font and bitmap server.
Up to the value of the constant, the size of the virtual address range reserved for this heap
equals the amount of physical RAM memory. As available hardware RAM sizes increase in the future,
it may become impossible to reserve a virtual address range that big, hence the need for an upper limit.
@note	Default value: 64MB (0x04000000)
*/
EXPORT_C extern const TInt KFbServSharedHeapMaxSize = 0x04000000;

/**
@SYMPatchable
@internalTechnology

This constant modifies the writable data paging mode used by the font and bitmap server.
It is configured at rom build time via the following definitions in fbserv.iby:
	SYMBIAN_GRAPHICS_FBSERV_PAGEDATA
	SYMBIAN_GRAPHICS_FBSERV_UNPAGEDDATA
	SYMBIAN_GRAPHICS_FBSERV_PAGE_BITMAP_DATA_ONLY
	SYMBIAN_GRAPHICS_FBSERV_PAGE_BITMAP_DATA_AND_SHARED_HEAP_ONLY
@note	Default value: (0x00) This does not modify the writable data paging mode.
*/
EXPORT_C extern const TInt KFbServWritableDataPagingMode = 0x00;

// Header files declaring these constants are included to confirm that the definition matches.
// They are included at the end because otherwise the ARM compiler refuses to initialise the values.
#if (__ARMCC_VERSION >= 310000)
//#	include "SERVER.H"	// Commented out to prevent warning dllexport/dllimport conflict
#else
#	include "SERVER.H"
#endif