Update contrib.
1 // Copyright (c) 2005-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 __GRAPHICSPERFORMANCE_ALPHABLEND_H__
23 #define __GRAPHICSPERFORMANCE_ALPHABLEND_H__
25 #include "te_graphicsperformanceSuiteStepBase.h"
27 #include <test/ttmsgraphicsstep.h>
29 enum TBlendTestFunc {EBlendTestVerticalLine,EBlendTestDrawRect,EBlendTestDrawText,EBlendTestDrawVerticalText,EBlendTestDrawTextAntiAliased,EBlendTestDrawTextIType};
31 class CAlphaBlendTest : public CTe_graphicsperformanceSuiteStepBase
34 void DoBitBltAlphaBitmapTestL(TDisplayMode aSrcMode,TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations);
35 void ClearWindow(RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TRgb aColor);
36 void BitBlt(RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, CFbsBitmap& aImage);
37 void DoAlphaBlendBitmapsBitmapTestL(TDisplayMode aSrcMode, TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations);
38 void DoDrawBitmapL(TBool aUseMask, TDisplayMode aSrcMode, TDisplayMode aDestMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations);
39 void DoNormalBitBltL(TBool aUseMask, TDisplayMode aSrcMode, TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations);
40 void DoDrawBlendedTestsL(TBlendTestFunc aTestFunc, RWsSession& aSession, TInt aNumIterations);
41 void DoDrawBlendedTestL(TBlendTestFunc aTestFunc, TInt aAlpha, TDisplayMode aDisplayMode, RWsSession& aSession, TInt aNumIterations);
43 TVerdict doTestStepL(TBool aIType);
44 TBool CheckMonoTypeInstalledL();
47 class CAlphaBlendTestNormal : public CAlphaBlendTest
50 CAlphaBlendTestNormal();
52 virtual TVerdict doTestStepL();
55 class CAlphaBlendTestIType : public CAlphaBlendTest
58 CAlphaBlendTestIType();
60 virtual TVerdict doTestStepL();
63 _LIT(KAlphaBlendTest,"TAlphaBlend");
64 _LIT(KAlphaBlendTestIType,"TAlphaBlendIType");
66 #endif //__GRAPHICSPERFORMANCE_ROTATION_H__