os/graphics/egl/egltest/inc/egltestcommoninisettings.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/egl/egltest/inc/egltestcommoninisettings.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,77 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @test
    1.22 +*/
    1.23 +
    1.24 +#ifndef __EGLTEST_INI_SETTINGS_H__
    1.25 +#define __EGLTEST_INI_SETTINGS_H__
    1.26 +
    1.27 +#include <iniparser.h>
    1.28 +#include <e32base.h>
    1.29 +#include <pixelformats.h>
    1.30 +#include <VG/openvg.h>
    1.31 +
    1.32 +// INI file name
    1.33 +_LIT(KConfigFileName,"z:\\egltest\\egltest_settings.ini");
    1.34 +
    1.35 +// INI file sections for source formats and surface formats 
    1.36 +_LIT(KSectionImageSourceFormats,"ImageSourceFormats");
    1.37 +_LIT(KSectionPixmapSgSurfaceFormats,"PixmapSgSurfaceFormats");
    1.38 +_LIT(KSectionPixmapFbsSurfaceFormats,"PixmapFbsSurfaceFormats");
    1.39 +_LIT(KSectionPBufferSurfaceFormats,"PBufferSurfaceFormats");
    1.40 +_LIT(KSectionWindowSurfaceFormats,"WindowSurfaceFormats");
    1.41 +_LIT(KKeyNumFormats,"NumFormats");
    1.42 +_LIT(KKeyFormatX,"Format%d");
    1.43 +
    1.44 +// INI file sections for EGL/VG/GLES extensions 
    1.45 +#ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
    1.46 +_LIT(KSectionQueryExtensions,"QueryString_Extensions");
    1.47 +#else
    1.48 +_LIT(KSectionQueryExtensions,"QueryString_Extensions_tb92");
    1.49 +#endif
    1.50 +_LIT(KKeyCountExtensionsEGL,"CountExtensionsEGL");
    1.51 +_LIT(KKeyCountExtensionsVG,"CountExtensionsVG");
    1.52 +_LIT(KKeyCountExtensionsGLES,"CountExtensionsGLES");
    1.53 +_LIT(KKeyExtensionEGLX,"ExtensionEGL%d");
    1.54 +_LIT(KKeyExtensionVGX,"ExtensionVG%d");
    1.55 +_LIT(KKeyExtensionGLESX,"ExtensionGLES%d");
    1.56 +
    1.57 +
    1.58 +NONSHARABLE_CLASS(CEglTestCommonIniSettings) : public CBase 
    1.59 +	{
    1.60 +public:
    1.61 +	IMPORT_C static CEglTestCommonIniSettings* NewL();
    1.62 +	IMPORT_C static CEglTestCommonIniSettings* NewLC();
    1.63 +	IMPORT_C ~CEglTestCommonIniSettings();	
    1.64 +	
    1.65 +	IMPORT_C VGImageFormat GetVgFormat(const TDesC& aSectioName, const TInt aWhich);	
    1.66 +	IMPORT_C TUidPixelFormat GetPixelFormat(const TDesC& aSectioName, const TInt aWhich);
    1.67 +	IMPORT_C TInt GetNumberOfFormats(const TDesC& aSectioName);
    1.68 +    IMPORT_C TInt GetNumberOfIterations(const TDesC& aSectioName);
    1.69 +    IMPORT_C TSize GetImageSize(const TDesC& aSectioName); 
    1.70 +    IMPORT_C TInt GetThresholdGPUUsedMemory(const TDesC& aSectioName);
    1.71 +    IMPORT_C TInt GetThresholdLastIteration(const TDesC& aSectioName);
    1.72 +    IMPORT_C TSize GetWindowSize(const TDesC& aSectioName); 
    1.73 +    
    1.74 +private:
    1.75 +	void ConstructL();
    1.76 +private:
    1.77 +	CIniData* iIniData;
    1.78 +	};
    1.79 +
    1.80 +#endif