sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent - Internal Symbian test code sl@0: */ sl@0: sl@0: #ifndef __GRAPHICSPERFORMANCE_ALPHABLEND_H__ sl@0: #define __GRAPHICSPERFORMANCE_ALPHABLEND_H__ sl@0: sl@0: #include "te_graphicsperformanceSuiteStepBase.h" sl@0: #include sl@0: #include sl@0: sl@0: enum TBlendTestFunc {EBlendTestVerticalLine,EBlendTestDrawRect,EBlendTestDrawText,EBlendTestDrawVerticalText,EBlendTestDrawTextAntiAliased,EBlendTestDrawTextIType}; sl@0: sl@0: class CAlphaBlendTest : public CTe_graphicsperformanceSuiteStepBase sl@0: { sl@0: private: sl@0: void DoBitBltAlphaBitmapTestL(TDisplayMode aSrcMode,TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations); sl@0: void ClearWindow(RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TRgb aColor); sl@0: void BitBlt(RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, CFbsBitmap& aImage); sl@0: void DoAlphaBlendBitmapsBitmapTestL(TDisplayMode aSrcMode, TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations); sl@0: void DoDrawBitmapL(TBool aUseMask, TDisplayMode aSrcMode, TDisplayMode aDestMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations); sl@0: void DoNormalBitBltL(TBool aUseMask, TDisplayMode aSrcMode, TDisplayMode aDstMode, RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TInt aNumIterations); sl@0: void DoDrawBlendedTestsL(TBlendTestFunc aTestFunc, RWsSession& aSession, TInt aNumIterations); sl@0: void DoDrawBlendedTestL(TBlendTestFunc aTestFunc, TInt aAlpha, TDisplayMode aDisplayMode, RWsSession& aSession, TInt aNumIterations); sl@0: protected: sl@0: TVerdict doTestStepL(TBool aIType); sl@0: TBool CheckMonoTypeInstalledL(); sl@0: }; sl@0: sl@0: class CAlphaBlendTestNormal : public CAlphaBlendTest sl@0: { sl@0: public: sl@0: CAlphaBlendTestNormal(); sl@0: // From CTestStep sl@0: virtual TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: class CAlphaBlendTestIType : public CAlphaBlendTest sl@0: { sl@0: public: sl@0: CAlphaBlendTestIType(); sl@0: // From CTestStep sl@0: virtual TVerdict doTestStepL(); sl@0: }; sl@0: sl@0: _LIT(KAlphaBlendTest,"TAlphaBlend"); sl@0: _LIT(KAlphaBlendTestIType,"TAlphaBlendIType"); sl@0: sl@0: #endif //__GRAPHICSPERFORMANCE_ROTATION_H__