First public contribution.
1 // Copyright (c) 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 TFLIPFRAMERATE_H
23 #define TFLIPFRAMERATE_H
25 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
26 #include <graphics/sgimagecollection.h>
27 #include <graphics/sgimage.h>
29 #include <graphics/surfaceupdateclient.h>
30 #include <graphics/surfaceconfiguration.h>
31 #include "tdirectgditestbase.h"
34 Test case to test the relative performance when a surface is rotated and/or flipped
36 class CTFlipFramerate : public CTDirectGdiTestBase
44 enum TScreenSizeDivisors
50 // From CTDirectGdiTestBase
51 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
52 virtual TVerdict doTestStepPreambleL();
53 virtual TVerdict doTestStepPostambleL();
55 virtual TVerdict doTestStepL();
59 void TestStepFramerateL(const TFlipped aIsFlipped,
60 const TScreenSizeDivisors aWindowSizeDivisor,
61 const TDesC& aStepName);
62 void TestFramerateOrientationL(const TFlipped aIsFlipped,
63 const TScreenSizeDivisors aWindowSizeDivisor,
64 const CFbsBitGc::TGraphicsOrientation aOrientation);
65 void SetSizeL(const TScreenSizeDivisors aWindowSizeDivisor);
69 RWindowGroup iWinGroup;
71 CWsScreenDevice* iScreenDev;
72 RSurfaceUpdateSession iUpdateSession;
75 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
76 TSgImageInfo iImageInfo;
77 RSgImageCollection iImgCol;
80 TInt iTextPhraseLength;
82 CFbsTypefaceStore* iTsStore;
84 TTimeStamp iTimeStamp;
85 TReal iTextPhraseSpeed;
86 TSurfaceConfiguration iSurfaceConfiguration;
89 _LIT(KTFlipFramerate,"tflipframerate");
91 #endif /* TFLIPFRAMERATE_H */