sl@0: // Copyright (c) 2008-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: // Test GraphicTestFrameRate plugins sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test - Test plug-in to test wsgraphic animation artwork framerate with rate limiting renterstage enabled sl@0: @internalComponent - Internal Symbian test code sl@0: */ sl@0: sl@0: #ifndef WSRATELIMITDRAWER_H_ sl@0: #define WSRATELIMITDRAWER_H_ sl@0: sl@0: #include sl@0: sl@0: const TUid KRateLimitDrawerInterfaceId = {0x102869F5}; sl@0: const TUid KRateLimitDrawerImplId = {0x102869F6}; sl@0: sl@0: /** sl@0: Holds draw count values of two different animations sl@0: */ sl@0: NONSHARABLE_STRUCT(TAnimData) sl@0: { sl@0: TReal iFrameRate; sl@0: }; sl@0: sl@0: /** Client representation of a test anim that displays its frame-rate sl@0: sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: NONSHARABLE_CLASS(CWsRateLimitGraphic): public CWsGraphic sl@0: sl@0: { sl@0: public: sl@0: IMPORT_C static CWsRateLimitGraphic* NewL(TUid aUid); sl@0: IMPORT_C static CWsRateLimitGraphic* NewL(); sl@0: IMPORT_C ~CWsRateLimitGraphic(); sl@0: IMPORT_C TInt QueryPluginForFrameRate(TAnimData& aCount); sl@0: private: sl@0: CWsRateLimitGraphic(); sl@0: void HandleMessage(const TDesC8& aData); sl@0: void OnReplace(); sl@0: private: sl@0: TAnimData* iAnimData; sl@0: }; sl@0: sl@0: #endif /*WSRATELIMITDRAWER_H_*/