graphicstest/uibench/src/tgraphicsresource.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21  
       
    22 #ifndef TGRAPHICSRESOURCE_H
       
    23 #define TGRAPHICSRESOURCE_H
       
    24 
       
    25 #include "te_graphicsperformanceSuiteStepBase.h"
       
    26 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
       
    27 #include <graphics/sgimage.h>
       
    28 #endif
       
    29 // The size of the image data in TUints. 
       
    30 const TInt KMaxArraySize = 360000;
       
    31 // The datastride to use when creating an RSgImage.
       
    32 const TInt KImageDataStride = 16;
       
    33 
       
    34 class CTGraphicsResource : public CTe_graphicsperformanceSuiteStepBase
       
    35 	{
       
    36 public:
       
    37 	CTGraphicsResource();
       
    38 	~CTGraphicsResource();
       
    39 
       
    40 private:
       
    41 	static void CloseAndDestroyImageHandle(TAny* aPtr);
       
    42 	void ImageCreationL(const TSize aSizes[], TInt aMaxNumImages);
       
    43 	void ImageCreationSimpleL(const TInt aWidth, const TInt aHeight, const TDesC& aTestDescription);
       
    44 	void SmallImageCreationSimpleL();
       
    45 	void LargeImageCreationSimpleL();
       
    46 	void ImageDuplicateL();
       
    47 	void ImageDuplicateHandleL();
       
    48 	void ImageMapL();
       
    49 	
       
    50 	// From CTestStep
       
    51 	virtual TVerdict doTestStepL();
       
    52 
       
    53 private:
       
    54 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
       
    55 	TSgImageInfo iImageInfo;
       
    56 #endif
       
    57 	TUint16 iImageData[KMaxArraySize];
       
    58 	};
       
    59 
       
    60 _LIT(KTGraphicsResource,"tgraphicsresourceperformance");
       
    61 
       
    62 #endif