graphicstest/uibench/src/tspriteperf.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     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".
       
     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 __TSPRITEPERF_H__
       
    23 #define __TSPRITEPERF_H__
       
    24 
       
    25 #include "te_graphicsperformanceSuiteStepBase.h"
       
    26 #include <w32std.h>
       
    27 #include <w32adll.h>
       
    28 #include "tspriteanimdll.h"
       
    29 
       
    30 #define TEST_BITMAP_NAME _L("z:\\system\\data\\test.mbm")
       
    31 class CTSpritePerf : public CTe_graphicsperformanceSuiteStepBase
       
    32 	{
       
    33 public:
       
    34 	CTSpritePerf();
       
    35 	~CTSpritePerf();
       
    36 	enum TConstants
       
    37 		{ENumWins = 5,};
       
    38 private:
       
    39 	void SpriteAnimTestL(const TDesC& aTestName, TBool aOverWholeScreen, TBool aTransparentMask);
       
    40 	void SpriteAnimOverWholeScreenL();
       
    41 	void SpriteAnimUnderTranslucentWindowsL();
       
    42 	void SpriteAnimWithSemitransparentMaskOverWholeScreenL();
       
    43 	void SpriteAnimWithSemitransparentMaskUnderTranslucentWindowsL();
       
    44 	
       
    45 	void FloatingSpriteTestL(const TDesC& aTestName, TBool aIsOpaqueSprite, TBool aOverlapUpdateArea);
       
    46 	void OpaqueFloatingSpriteNonOverlapUpdateAreaL();
       
    47 	void SemitransparentFloatingSpriteNonOverlapUpdateAreaL();
       
    48 	void OpaqueFloatingSpriteOverlapUpdateAreaL();
       
    49 	void SemitransparentFloatingSpriteOverlapUpdateAreaL();
       
    50 	
       
    51 	// From CTestStep
       
    52 	TVerdict doTestStepPreambleL();
       
    53 	TVerdict doTestStepPostambleL();
       
    54 	TVerdict doTestStepL();
       
    55 
       
    56 	void SetUpWindowEnvironmentL(RAnimDll* aAnimDll);
       
    57 	void ConstructArrayOfWindowsL(TBool aUseTransparency);
       
    58 	void ReleaseWindowsAndEnvironment();
       
    59 		
       
    60 	RWsSession iWs;
       
    61 	CWsScreenDevice* iWsScreenDev; 
       
    62 	RWindowGroup* iWinGroup;	
       
    63 	RWindow* iWins[ENumWins];
       
    64 	TRgb iBackColour[ENumWins];
       
    65 	};
       
    66 	
       
    67 _LIT(KTSpritePerfName,"tspriteperf");
       
    68 
       
    69 #endif