graphicstest/uibench/src/tbitbltperf_directgdi.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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 __TBITBLTPERF_DIRECTGDI_H__
       
    23 #define __TBITBLTPERF_DIRECTGDI_H__
       
    24 
       
    25 #include "tdirectgditestbase.h"
       
    26 #include <bitdev.h>
       
    27 #include <graphics/directgdicontext.h>
       
    28 
       
    29 
       
    30 class CTBitBltPerfDirectGdi : public CTDirectGdiTestBase
       
    31 	{
       
    32 public:	
       
    33 	CTBitBltPerfDirectGdi();
       
    34 	~CTBitBltPerfDirectGdi();	
       
    35 	
       
    36 private:
       
    37 	enum TBitBltTest
       
    38 		{
       
    39 		EBitBlt,
       
    40 		EBitBltMasked,
       
    41 		EDrawBitmap,
       
    42 		EDrawBitmapMasked,
       
    43 		};		
       
    44 		
       
    45 	void BitBltBitmapTestL(TBitBltTest aBitBltTest, CFbsBitmap* aBitmapToBlt,  CFbsBitmap* aBitmapMask, TRect aCropTo, const TDesC& aTestName, CDirectGdiContext* aGc, TBool aScaled=EFalse);
       
    46 	void MultiBitBltBitmapTestL(TBitBltTest aBitBltTest, RArray<CFbsBitmap*> aBitmapArray, CFbsBitmap* aBitmapMask, TBool aCrop, const TDesC& aTestName, CDirectGdiContext* aGc);
       
    47 	
       
    48 	void SimpleBitBltL();
       
    49 	void SimpleDrawBitmapL();
       
    50 	void MaskedBitBltL();
       
    51 	void MaskedBitBltSameL();
       
    52 	void MaskedBitBltFlickerL();
       
    53 	void MaskedBitBltAlphaL();
       
    54 	void WriteAlphaLineExTestL();
       
    55 	void BitBltCpuAccessL();
       
    56 	void SimpleDrawResourceL();
       
    57 	void MaskedDrawBitmapL();
       
    58 	void MaskedDrawBitmapScaledL();
       
    59 
       
    60 	// From CTestStep
       
    61 #ifndef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE
       
    62 	virtual TVerdict doTestStepPreambleL();
       
    63 	virtual TVerdict doTestStepPostambleL();
       
    64 #endif	
       
    65 	virtual TVerdict doTestStepL();
       
    66 	
       
    67 private:	
       
    68 	CFbsBitmapDevice* iBitmapDevice;
       
    69 	CFbsBitmap* iAlpha8bit;
       
    70 	RArray<CFbsBitmap*> iBitmapImage;	// Store of bitmap images for BitBlt tests
       
    71 	RArray<CFbsBitmap*> iBitmapTile;		
       
    72 	};
       
    73 
       
    74 _LIT(KTBitBltPerfDirectGdi,"tbitbltperf_directgdi");
       
    75 
       
    76 #endif