fbs/fontandbitmapserver/tfbs/tfbsoogm.h
author hgs
Fri, 16 Jul 2010 11:45:55 +0300
changeset 116 171fae344dd4
permissions -rw-r--r--
201026_3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
116
171fae344dd4 201026_3
hgs
parents:
diff changeset
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
171fae344dd4 201026_3
hgs
parents:
diff changeset
     2
// All rights reserved.
171fae344dd4 201026_3
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
171fae344dd4 201026_3
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
171fae344dd4 201026_3
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
171fae344dd4 201026_3
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
171fae344dd4 201026_3
hgs
parents:
diff changeset
     7
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
     8
// Initial Contributors:
171fae344dd4 201026_3
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
171fae344dd4 201026_3
hgs
parents:
diff changeset
    10
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    11
// Contributors:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    12
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    13
// Description:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    14
//
171fae344dd4 201026_3
hgs
parents:
diff changeset
    15
171fae344dd4 201026_3
hgs
parents:
diff changeset
    16
#ifndef TFBSOOGM_H
171fae344dd4 201026_3
hgs
parents:
diff changeset
    17
#define TFBSOOGM_H
171fae344dd4 201026_3
hgs
parents:
diff changeset
    18
#include <EGL/egl.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    19
171fae344dd4 201026_3
hgs
parents:
diff changeset
    20
#include <e32cmn.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    21
#include <EGL/eglext.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    22
#include <VG/openvg.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    23
#include <sgresource/sgresource.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    24
#include <sgresource/sgimage.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    25
#include <graphics/fbsglyphdataiterator.h>
171fae344dd4 201026_3
hgs
parents:
diff changeset
    26
#include "FbsMessage.h"
171fae344dd4 201026_3
hgs
parents:
diff changeset
    27
171fae344dd4 201026_3
hgs
parents:
diff changeset
    28
#include "test/TGraphicsHarness.h"
171fae344dd4 201026_3
hgs
parents:
diff changeset
    29
171fae344dd4 201026_3
hgs
parents:
diff changeset
    30
171fae344dd4 201026_3
hgs
parents:
diff changeset
    31
/**
171fae344dd4 201026_3
hgs
parents:
diff changeset
    32
Test class for the GPU 'Out of Graphics Memory' (OoGM) plug-in
171fae344dd4 201026_3
hgs
parents:
diff changeset
    33
171fae344dd4 201026_3
hgs
parents:
diff changeset
    34
Hardware only as the GoomMonitor framework does not operate under WINSCW
171fae344dd4 201026_3
hgs
parents:
diff changeset
    35
*/
171fae344dd4 201026_3
hgs
parents:
diff changeset
    36
class CTFbsOogm : public CTGraphicsBase
171fae344dd4 201026_3
hgs
parents:
diff changeset
    37
    {
171fae344dd4 201026_3
hgs
parents:
diff changeset
    38
public:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    39
    CTFbsOogm( CTestStep* aStep );
171fae344dd4 201026_3
hgs
parents:
diff changeset
    40
    ~CTFbsOogm();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    41
protected:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    42
    //from  CTGraphicsBase
171fae344dd4 201026_3
hgs
parents:
diff changeset
    43
    virtual void RunTestCaseL( TInt aCurTestCase );
171fae344dd4 201026_3
hgs
parents:
diff changeset
    44
    void ConstructL();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    45
171fae344dd4 201026_3
hgs
parents:
diff changeset
    46
private:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    47
    // Test Cases
171fae344dd4 201026_3
hgs
parents:
diff changeset
    48
    void CacheClearanceAndLimitAdjustments();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    49
171fae344dd4 201026_3
hgs
parents:
diff changeset
    50
private:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    51
    void UseGpuL();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    52
    TInt FillGraphicsMemoryWithImages( const TSize& aSize, RArray<RSgImage>& aImages );
171fae344dd4 201026_3
hgs
parents:
diff changeset
    53
171fae344dd4 201026_3
hgs
parents:
diff changeset
    54
private:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    55
    CFbsFont* iFont;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    56
    CFbsTypefaceStore* iTs;
171fae344dd4 201026_3
hgs
parents:
diff changeset
    57
    };
171fae344dd4 201026_3
hgs
parents:
diff changeset
    58
171fae344dd4 201026_3
hgs
parents:
diff changeset
    59
171fae344dd4 201026_3
hgs
parents:
diff changeset
    60
171fae344dd4 201026_3
hgs
parents:
diff changeset
    61
class CTFbsOogmStep : public CTGraphicsStep
171fae344dd4 201026_3
hgs
parents:
diff changeset
    62
    {
171fae344dd4 201026_3
hgs
parents:
diff changeset
    63
public:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    64
    CTFbsOogmStep();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    65
171fae344dd4 201026_3
hgs
parents:
diff changeset
    66
protected:
171fae344dd4 201026_3
hgs
parents:
diff changeset
    67
    //from CTGraphicsStep
171fae344dd4 201026_3
hgs
parents:
diff changeset
    68
    virtual CTGraphicsBase* CreateTestL();
171fae344dd4 201026_3
hgs
parents:
diff changeset
    69
    };
171fae344dd4 201026_3
hgs
parents:
diff changeset
    70
171fae344dd4 201026_3
hgs
parents:
diff changeset
    71
_LIT( KTFbsOogmStep,"TFbsOogm" );
171fae344dd4 201026_3
hgs
parents:
diff changeset
    72
171fae344dd4 201026_3
hgs
parents:
diff changeset
    73
171fae344dd4 201026_3
hgs
parents:
diff changeset
    74
171fae344dd4 201026_3
hgs
parents:
diff changeset
    75
#endif // TFBSOOGM_H