os/graphics/egl/egltest/inc/egltest_benchmark_swapbuffers.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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  
    21 #ifndef EGLTEST_BENCHMARK_SWAPBUFFERS_H
    22 #define EGLTEST_BENCHMARK_SWAPBUFFERS_H
    23 
    24 #include "eglteststep.h"
    25 #include <EGL/egl.h>
    26 
    27 class CTProfiler;
    28 
    29 NONSHARABLE_CLASS(CEglTest_Benchmark_SwapBuffers) : public CEglTestStep
    30 	{
    31 public:
    32     CEglTest_Benchmark_SwapBuffers();
    33     virtual ~CEglTest_Benchmark_SwapBuffers();
    34 	
    35 private:
    36 	// From CTestStep
    37     virtual TVerdict doTestStepPreambleL();
    38     virtual TVerdict doTestStepPostambleL();
    39     virtual TVerdict doTestStepL();
    40 	
    41 	void EglSwapBufferL();
    42 	void EglSwapBufferRegionL();
    43 	void EglSwapBufferRegionStressL(EGLint aCount);
    44 	
    45 private:
    46     RWsSession iWs;
    47     RWindowGroup iWindowGroup;
    48     RWindow iWindow;
    49     
    50     EGLSurface iEglSurface;
    51     EGLContext iEglContext;
    52     CTProfiler* iProfiler;
    53     TSize iWindowSize;
    54 
    55     PFNEGLSWAPBUFFERSREGIONNOKPROC iPfnEglSwapBuffersRegionNok;
    56 	};
    57 	
    58 // Testname, is used by the test server and the test scripts to identify the test
    59 _LIT(KBenchmark_SwapBuffers, "Benchmark_SwapBuffers");
    60 
    61 #endif