|
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". |
|
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 __GRAPHICSPERFORMANCE_ALPHABLEND_H__ |
|
23 #define __GRAPHICSPERFORMANCE_ALPHABLEND_H__ |
|
24 |
|
25 #include "te_graphicsperformanceSuiteStepBase.h" |
|
26 #include <w32std.h> |
|
27 #include <test/ttmsgraphicsstep.h> |
|
28 |
|
29 enum TBlendTestFunc {EBlendTestVerticalLine,EBlendTestDrawRect,EBlendTestDrawText,EBlendTestDrawVerticalText,EBlendTestDrawTextAntiAliased,EBlendTestDrawTextIType}; |
|
30 |
|
31 class CAlphaBlendTest : public CTe_graphicsperformanceSuiteStepBase |
|
32 { |
|
33 private: |
|
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); |
|
42 protected: |
|
43 TVerdict doTestStepL(TBool aIType); |
|
44 TBool CheckMonoTypeInstalledL(); |
|
45 }; |
|
46 |
|
47 class CAlphaBlendTestNormal : public CAlphaBlendTest |
|
48 { |
|
49 public: |
|
50 CAlphaBlendTestNormal(); |
|
51 // From CTestStep |
|
52 virtual TVerdict doTestStepL(); |
|
53 }; |
|
54 |
|
55 class CAlphaBlendTestIType : public CAlphaBlendTest |
|
56 { |
|
57 public: |
|
58 CAlphaBlendTestIType(); |
|
59 // From CTestStep |
|
60 virtual TVerdict doTestStepL(); |
|
61 }; |
|
62 |
|
63 _LIT(KAlphaBlendTest,"TAlphaBlend"); |
|
64 _LIT(KAlphaBlendTestIType,"TAlphaBlendIType"); |
|
65 |
|
66 #endif //__GRAPHICSPERFORMANCE_ROTATION_H__ |