windowing/windowserver/tframerate/framerate.h
changeset 116 171fae344dd4
parent 103 2717213c588a
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
     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 - Test plug-in to test wsgraphic animation artwork framerate
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __GRAPHICDRAWERTESTFRAMERATE_H__
       
    23 #define __GRAPHICDRAWERTESTFRAMERATE_H__
       
    24 
       
    25 #include <e32std.h>
       
    26 #include "Graphics/WSGRAPHICDRAWER.H"
       
    27 #include <Graphics/WSGRAPHICDRAWERINTERFACE.H>
       
    28 
       
    29 //Maximum number of animations at a time.
       
    30 #define KMaxAnim 100
       
    31 
       
    32 class MWsGraphicDrawerContext;
       
    33 
       
    34 /**
       
    35 Drawer plug-in class used to draw the animation and scheduling.
       
    36 */
       
    37 NONSHARABLE_CLASS(CGraphicDrawerTestFrameRate): public CWsGraphicDrawer
       
    38 	{
       
    39 public:
       
    40 	enum 
       
    41 		{
       
    42 		EImplUid = 0x1028292A
       
    43 		};
       
    44 	static CGraphicDrawerTestFrameRate* CreateL();
       
    45 	~CGraphicDrawerTestFrameRate();
       
    46 	void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId,MWsClient& aOwner,const TDesC8& aData);
       
    47 	void HandleMessage(const TDesC8& aData);
       
    48 private:
       
    49 	void DoDraw(MWsGc& aGc,const TRect& aRect,const TDesC8& aData) const;
       
    50 private:
       
    51 	CGraphicDrawerTestFrameRate();
       
    52 	mutable TInt iCounter[KMaxAnim];
       
    53 	MWsGraphicDrawerContext* iContext;
       
    54 	};
       
    55 
       
    56 #endif //__GRAPHICDRAWERTESTFRAMERATE_H__