os/graphics/egl/egltest/inc/egltestcommoninisettings.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
/**
sl@0
    17
 @file
sl@0
    18
 @test
sl@0
    19
*/
sl@0
    20
sl@0
    21
#ifndef __EGLTEST_INI_SETTINGS_H__
sl@0
    22
#define __EGLTEST_INI_SETTINGS_H__
sl@0
    23
sl@0
    24
#include <iniparser.h>
sl@0
    25
#include <e32base.h>
sl@0
    26
#include <pixelformats.h>
sl@0
    27
#include <VG/openvg.h>
sl@0
    28
sl@0
    29
// INI file name
sl@0
    30
_LIT(KConfigFileName,"z:\\egltest\\egltest_settings.ini");
sl@0
    31
sl@0
    32
// INI file sections for source formats and surface formats 
sl@0
    33
_LIT(KSectionImageSourceFormats,"ImageSourceFormats");
sl@0
    34
_LIT(KSectionPixmapSgSurfaceFormats,"PixmapSgSurfaceFormats");
sl@0
    35
_LIT(KSectionPixmapFbsSurfaceFormats,"PixmapFbsSurfaceFormats");
sl@0
    36
_LIT(KSectionPBufferSurfaceFormats,"PBufferSurfaceFormats");
sl@0
    37
_LIT(KSectionWindowSurfaceFormats,"WindowSurfaceFormats");
sl@0
    38
_LIT(KKeyNumFormats,"NumFormats");
sl@0
    39
_LIT(KKeyFormatX,"Format%d");
sl@0
    40
sl@0
    41
// INI file sections for EGL/VG/GLES extensions 
sl@0
    42
#ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
sl@0
    43
_LIT(KSectionQueryExtensions,"QueryString_Extensions");
sl@0
    44
#else
sl@0
    45
_LIT(KSectionQueryExtensions,"QueryString_Extensions_tb92");
sl@0
    46
#endif
sl@0
    47
_LIT(KKeyCountExtensionsEGL,"CountExtensionsEGL");
sl@0
    48
_LIT(KKeyCountExtensionsVG,"CountExtensionsVG");
sl@0
    49
_LIT(KKeyCountExtensionsGLES,"CountExtensionsGLES");
sl@0
    50
_LIT(KKeyExtensionEGLX,"ExtensionEGL%d");
sl@0
    51
_LIT(KKeyExtensionVGX,"ExtensionVG%d");
sl@0
    52
_LIT(KKeyExtensionGLESX,"ExtensionGLES%d");
sl@0
    53
sl@0
    54
sl@0
    55
NONSHARABLE_CLASS(CEglTestCommonIniSettings) : public CBase 
sl@0
    56
	{
sl@0
    57
public:
sl@0
    58
	IMPORT_C static CEglTestCommonIniSettings* NewL();
sl@0
    59
	IMPORT_C static CEglTestCommonIniSettings* NewLC();
sl@0
    60
	IMPORT_C ~CEglTestCommonIniSettings();	
sl@0
    61
	
sl@0
    62
	IMPORT_C VGImageFormat GetVgFormat(const TDesC& aSectioName, const TInt aWhich);	
sl@0
    63
	IMPORT_C TUidPixelFormat GetPixelFormat(const TDesC& aSectioName, const TInt aWhich);
sl@0
    64
	IMPORT_C TInt GetNumberOfFormats(const TDesC& aSectioName);
sl@0
    65
    IMPORT_C TInt GetNumberOfIterations(const TDesC& aSectioName);
sl@0
    66
    IMPORT_C TSize GetImageSize(const TDesC& aSectioName); 
sl@0
    67
    IMPORT_C TInt GetThresholdGPUUsedMemory(const TDesC& aSectioName);
sl@0
    68
    IMPORT_C TInt GetThresholdLastIteration(const TDesC& aSectioName);
sl@0
    69
    IMPORT_C TSize GetWindowSize(const TDesC& aSectioName); 
sl@0
    70
    
sl@0
    71
private:
sl@0
    72
	void ConstructL();
sl@0
    73
private:
sl@0
    74
	CIniData* iIniData;
sl@0
    75
	};
sl@0
    76
sl@0
    77
#endif