116
|
1 |
// Copyright (c) 2009-2010 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 |
#ifndef TFBSOOGM_H
|
|
17 |
#define TFBSOOGM_H
|
|
18 |
#include <EGL/egl.h>
|
|
19 |
|
|
20 |
#include <e32cmn.h>
|
|
21 |
#include <EGL/eglext.h>
|
|
22 |
#include <VG/openvg.h>
|
|
23 |
#include <sgresource/sgresource.h>
|
|
24 |
#include <sgresource/sgimage.h>
|
|
25 |
#include <graphics/fbsglyphdataiterator.h>
|
|
26 |
#include "FbsMessage.h"
|
|
27 |
|
|
28 |
#include "test/TGraphicsHarness.h"
|
|
29 |
|
|
30 |
|
|
31 |
/**
|
|
32 |
Test class for the GPU 'Out of Graphics Memory' (OoGM) plug-in
|
|
33 |
|
|
34 |
Hardware only as the GoomMonitor framework does not operate under WINSCW
|
|
35 |
*/
|
|
36 |
class CTFbsOogm : public CTGraphicsBase
|
|
37 |
{
|
|
38 |
public:
|
|
39 |
CTFbsOogm( CTestStep* aStep );
|
|
40 |
~CTFbsOogm();
|
|
41 |
protected:
|
|
42 |
//from CTGraphicsBase
|
|
43 |
virtual void RunTestCaseL( TInt aCurTestCase );
|
|
44 |
void ConstructL();
|
|
45 |
|
|
46 |
private:
|
|
47 |
// Test Cases
|
|
48 |
void CacheClearanceAndLimitAdjustments();
|
|
49 |
|
|
50 |
private:
|
|
51 |
void UseGpuL();
|
|
52 |
TInt FillGraphicsMemoryWithImages( const TSize& aSize, RArray<RSgImage>& aImages );
|
|
53 |
|
|
54 |
private:
|
|
55 |
CFbsFont* iFont;
|
|
56 |
CFbsTypefaceStore* iTs;
|
|
57 |
};
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
class CTFbsOogmStep : public CTGraphicsStep
|
|
62 |
{
|
|
63 |
public:
|
|
64 |
CTFbsOogmStep();
|
|
65 |
|
|
66 |
protected:
|
|
67 |
//from CTGraphicsStep
|
|
68 |
virtual CTGraphicsBase* CreateTestL();
|
|
69 |
};
|
|
70 |
|
|
71 |
_LIT( KTFbsOogmStep,"TFbsOogm" );
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
#endif // TFBSOOGM_H
|