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