sl@0: // Copyright (c) 2009-2010 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: // sl@0: sl@0: #ifndef TFBSOOGM_H sl@0: #define TFBSOOGM_H sl@0: #include sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include "FbsMessage.h" sl@0: sl@0: #include "test/TGraphicsHarness.h" sl@0: sl@0: sl@0: /** sl@0: Test class for the GPU 'Out of Graphics Memory' (OoGM) plug-in sl@0: sl@0: Hardware only as the GoomMonitor framework does not operate under WINSCW sl@0: */ sl@0: class CTFbsOogm : public CTGraphicsBase sl@0: { sl@0: public: sl@0: CTFbsOogm( CTestStep* aStep ); sl@0: ~CTFbsOogm(); sl@0: protected: sl@0: //from CTGraphicsBase sl@0: virtual void RunTestCaseL( TInt aCurTestCase ); sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: // Test Cases sl@0: void CacheClearanceAndLimitAdjustments(); sl@0: sl@0: private: sl@0: void UseGpuL(); sl@0: TInt FillGraphicsMemoryWithImages( const TSize& aSize, RArray& aImages ); sl@0: sl@0: private: sl@0: CFbsFont* iFont; sl@0: CFbsTypefaceStore* iTs; sl@0: }; sl@0: sl@0: sl@0: sl@0: class CTFbsOogmStep : public CTGraphicsStep sl@0: { sl@0: public: sl@0: CTFbsOogmStep(); sl@0: sl@0: protected: sl@0: //from CTGraphicsStep sl@0: virtual CTGraphicsBase* CreateTestL(); sl@0: }; sl@0: sl@0: _LIT( KTFbsOogmStep,"TFbsOogm" ); sl@0: sl@0: sl@0: sl@0: #endif // TFBSOOGM_H