Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #ifndef TGRAPHICSRESOURCE_H
23 #define TGRAPHICSRESOURCE_H
25 #include "te_graphicsperformanceSuiteStepBase.h"
26 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
27 #include <graphics/sgimage.h>
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;
34 class CTGraphicsResource : public CTe_graphicsperformanceSuiteStepBase
38 ~CTGraphicsResource();
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();
51 virtual TVerdict doTestStepL();
54 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
55 TSgImageInfo iImageInfo;
57 TUint16 iImageData[KMaxArraySize];
60 _LIT(KTGraphicsResource,"tgraphicsresourceperformance");