fbs/fontandbitmapserver/tfbs/textendedbitmap.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 #ifndef TEXTENDEDBITMAP_H
       
    17 #define TEXTENDEDBITMAP_H
       
    18 
       
    19 #include "tfbsbase.h"
       
    20 #include <graphics/fbsrasterizerclearcache.h>
       
    21 
       
    22 /** Class used for positive creation and scanline tests of extended bitmaps.
       
    23  */
       
    24 class CTExtendedBitmap : public CTFbsBase
       
    25 	{
       
    26 public:
       
    27 	CTExtendedBitmap(CTestStep* aStep);
       
    28 	~CTExtendedBitmap();
       
    29 	
       
    30 protected:
       
    31 	// From CTFbsBase
       
    32 	virtual void RunFbsTestL(TInt aCurTestCase);
       
    33 	void ConstructL();
       
    34 	
       
    35 private:
       
    36 	void CreateExtendedBitmapL();
       
    37 	void CreateLargeExtendedBitmapL();
       
    38 	void CreateUsingInitializerL();
       
    39 	void ScanLineL(TBool aUseDuplicateBitmap);
       
    40 	void TestGetPixelL(TBool aUseDuplicateBitmap);
       
    41 	static void ClearRasterizerCache(TAny* aPtr);
       
    42 	void TestGetVerticalScanLineL(TBool aUseDuplicateBitmap);
       
    43 	
       
    44 private:
       
    45 	TBool iRasterizerAvailable;	
       
    46 	TUint8* iLargeData;
       
    47 	MFbsRasterizerClearCache* iRasterizerClearCache;
       
    48 	};
       
    49 
       
    50 
       
    51 class CTExtendedBitmapStep : public CTGraphicsStep
       
    52 	{
       
    53 public:
       
    54 	CTExtendedBitmapStep();
       
    55 	
       
    56 protected:	
       
    57 	//from CTGraphicsStep
       
    58 	virtual CTGraphicsBase* CreateTestL();	
       
    59 	};
       
    60 
       
    61 _LIT(KTExtendedBitmapStep,"TExtendedBitmap");
       
    62 
       
    63 #endif // TEXTENDEDBITMAP_H