First public contribution.
1 // Copyright (c) 2008-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 __TSPRITEPERF_H__
23 #define __TSPRITEPERF_H__
25 #include "te_graphicsperformanceSuiteStepBase.h"
28 #include "tspriteanimdll.h"
30 #define TEST_BITMAP_NAME _L("z:\\system\\data\\test.mbm")
31 class CTSpritePerf : public CTe_graphicsperformanceSuiteStepBase
39 void SpriteAnimTestL(const TDesC& aTestName, TBool aOverWholeScreen, TBool aTransparentMask);
40 void SpriteAnimOverWholeScreenL();
41 void SpriteAnimUnderTranslucentWindowsL();
42 void SpriteAnimWithSemitransparentMaskOverWholeScreenL();
43 void SpriteAnimWithSemitransparentMaskUnderTranslucentWindowsL();
45 void FloatingSpriteTestL(const TDesC& aTestName, TBool aIsOpaqueSprite, TBool aOverlapUpdateArea);
46 void OpaqueFloatingSpriteNonOverlapUpdateAreaL();
47 void SemitransparentFloatingSpriteNonOverlapUpdateAreaL();
48 void OpaqueFloatingSpriteOverlapUpdateAreaL();
49 void SemitransparentFloatingSpriteOverlapUpdateAreaL();
52 TVerdict doTestStepPreambleL();
53 TVerdict doTestStepPostambleL();
54 TVerdict doTestStepL();
56 void SetUpWindowEnvironmentL(RAnimDll* aAnimDll);
57 void ConstructArrayOfWindowsL(TBool aUseTransparency);
58 void ReleaseWindowsAndEnvironment();
61 CWsScreenDevice* iWsScreenDev;
62 RWindowGroup* iWinGroup;
63 RWindow* iWins[ENumWins];
64 TRgb iBackColour[ENumWins];
67 _LIT(KTSpritePerfName,"tspriteperf");