egl/egltest/inc/egltest_benchmark_sgimage.h
changeset 0 5d03bc08d59c
child 26 15986eb6c500
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2009 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 /**
       
    17  @file
       
    18  @test
       
    19 */
       
    20 #ifndef __EGLTEST_BENCHMARK_SGIMAGE_H__
       
    21 #define __EGLTEST_BENCHMARK_SGIMAGE_H__
       
    22 
       
    23 #include "eglteststep.h"
       
    24 
       
    25 class CTProfiler;
       
    26 
       
    27 NONSHARABLE_CLASS(CEglTest_Benchmark_Base) : public CEglTestStep
       
    28     {
       
    29 public: 
       
    30     ~CEglTest_Benchmark_Base();
       
    31     // from CTestStep
       
    32     TVerdict doTestStepPreambleL();
       
    33     TVerdict doTestStepPostambleL();
       
    34 protected:
       
    35     CTProfiler* iProfiler;
       
    36     TInt iNumIterations;
       
    37     TSize iImageSize;
       
    38     TUidPixelFormat iPixelFormat;
       
    39     };
       
    40 
       
    41 _LIT(KBenchmark_CreateCloseImage, "Benchmark_CreateCloseImage");
       
    42 NONSHARABLE_CLASS(CEglTest_Benchmark_CreateCloseImage) : public CEglTest_Benchmark_Base
       
    43     {
       
    44 public: 
       
    45     // from CTestStep
       
    46     TVerdict doTestStepL();
       
    47     };
       
    48 
       
    49 _LIT(KBenchmark_Multi_Process_CreateCloseImage, "Benchmark_Multi_Process_CreateCloseImage");
       
    50 NONSHARABLE_CLASS(CEglTest_Benchmark_Multi_Process_CreateCloseImage) : public CEglTest_Benchmark_Base
       
    51     {
       
    52 public:
       
    53     // from CTestStep
       
    54     TVerdict doTestStepL();
       
    55 protected:
       
    56     // from CEglTestStep
       
    57     void doProcessFunctionL(TInt aIdx);
       
    58    };
       
    59 
       
    60 _LIT(KBenchmark_DrawImage, "Benchmark_DrawImage");
       
    61 NONSHARABLE_CLASS(CEglTest_Benchmark_DrawImage) : public CEglTest_Benchmark_Base
       
    62     {
       
    63 public: 
       
    64     // from CTestStep
       
    65     TVerdict doTestStepL();
       
    66     };
       
    67 
       
    68 #endif // __EGLTEST_BENCHMARK_SGIMAGE_H__