1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/fbs/fontandbitmapserver/tfbs/tfbsoogm.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,75 @@
1.4 +// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +#ifndef TFBSOOGM_H
1.20 +#define TFBSOOGM_H
1.21 +#include <EGL/egl.h>
1.22 +
1.23 +#include <e32cmn.h>
1.24 +#include <EGL/eglext.h>
1.25 +#include <VG/openvg.h>
1.26 +#include <sgresource/sgresource.h>
1.27 +#include <sgresource/sgimage.h>
1.28 +#include <graphics/fbsglyphdataiterator.h>
1.29 +#include "FbsMessage.h"
1.30 +
1.31 +#include "test/TGraphicsHarness.h"
1.32 +
1.33 +
1.34 +/**
1.35 +Test class for the GPU 'Out of Graphics Memory' (OoGM) plug-in
1.36 +
1.37 +Hardware only as the GoomMonitor framework does not operate under WINSCW
1.38 +*/
1.39 +class CTFbsOogm : public CTGraphicsBase
1.40 + {
1.41 +public:
1.42 + CTFbsOogm( CTestStep* aStep );
1.43 + ~CTFbsOogm();
1.44 +protected:
1.45 + //from CTGraphicsBase
1.46 + virtual void RunTestCaseL( TInt aCurTestCase );
1.47 + void ConstructL();
1.48 +
1.49 +private:
1.50 + // Test Cases
1.51 + void CacheClearanceAndLimitAdjustments();
1.52 +
1.53 +private:
1.54 + void UseGpuL();
1.55 + TInt FillGraphicsMemoryWithImages( const TSize& aSize, RArray<RSgImage>& aImages );
1.56 +
1.57 +private:
1.58 + CFbsFont* iFont;
1.59 + CFbsTypefaceStore* iTs;
1.60 + };
1.61 +
1.62 +
1.63 +
1.64 +class CTFbsOogmStep : public CTGraphicsStep
1.65 + {
1.66 +public:
1.67 + CTFbsOogmStep();
1.68 +
1.69 +protected:
1.70 + //from CTGraphicsStep
1.71 + virtual CTGraphicsBase* CreateTestL();
1.72 + };
1.73 +
1.74 +_LIT( KTFbsOogmStep,"TFbsOogm" );
1.75 +
1.76 +
1.77 +
1.78 +#endif // TFBSOOGM_H