windowing/windowserver/test/t_ratelimiter/tratelimitdrawer/wsratelimitdrawer.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 // Test GraphicTestFrameRate plugins
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @test - Test plug-in to test wsgraphic animation artwork framerate with rate limiting renterstage enabled
       
    21  @internalComponent - Internal Symbian test code
       
    22 */
       
    23 
       
    24 #ifndef WSRATELIMITDRAWER_H_
       
    25 #define WSRATELIMITDRAWER_H_
       
    26 
       
    27 #include <w32std.h>
       
    28 
       
    29 const TUid KRateLimitDrawerInterfaceId = {0x102869F5};
       
    30 const TUid KRateLimitDrawerImplId = {0x102869F6};
       
    31 
       
    32 /**
       
    33 Holds draw count values of two different animations
       
    34 */
       
    35 NONSHARABLE_STRUCT(TAnimData)
       
    36 	{
       
    37 	TReal iFrameRate;
       
    38 	};
       
    39 	
       
    40 /** Client representation of a test anim that displays its frame-rate
       
    41 
       
    42 @publishedPartner
       
    43 @released
       
    44 */	
       
    45 NONSHARABLE_CLASS(CWsRateLimitGraphic): public CWsGraphic
       
    46 
       
    47 	{
       
    48 public:
       
    49 	IMPORT_C static CWsRateLimitGraphic* NewL(TUid aUid);
       
    50 	IMPORT_C static CWsRateLimitGraphic* NewL();
       
    51 	IMPORT_C ~CWsRateLimitGraphic();
       
    52 	IMPORT_C TInt QueryPluginForFrameRate(TAnimData& aCount);
       
    53 private:
       
    54 	CWsRateLimitGraphic();
       
    55 	void HandleMessage(const TDesC8& aData);
       
    56 	void OnReplace();
       
    57 private:
       
    58 	TAnimData* iAnimData;
       
    59 	};
       
    60 
       
    61 #endif /*WSRATELIMITDRAWER_H_*/