graphicstest/uibench/s60/src/tests_egl/teglswapbuffer.h
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 43 7579f232bae7
child 45 36b2e23a8629
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
     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  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21  
       
    22 #ifndef TEGLSWAPBUFFER_H
       
    23 #define TEGLSWAPBUFFER_H
       
    24 
       
    25 
       
    26 #include "te_graphicsperformanceSuiteStepBase.h"
       
    27 
       
    28 #include <EGL/egl.h>
       
    29 
       
    30 
       
    31 class CTEglSwapBuffer : public CTe_graphicsperformanceSuiteStepBase
       
    32 	{
       
    33 public:
       
    34     virtual ~CTEglSwapBuffer();
       
    35     CTEglSwapBuffer();
       
    36 	
       
    37 private:
       
    38 	// From CTe_graphicsperformanceSuiteStepBase
       
    39     virtual TVerdict doTestStepPreambleL();
       
    40     virtual TVerdict doTestStepL();
       
    41 	
       
    42 	void EglSwapBufferL();
       
    43 	void EglSwapBufferRegionL();
       
    44 	void EglSwapBufferRegionStressL(EGLint aCount);
       
    45 	
       
    46 private:
       
    47     RWsSession iWs;
       
    48     RWindowGroup iWindowGroup;
       
    49     RWindow iWindow;
       
    50     
       
    51     EGLDisplay iEglDisplay;
       
    52     EGLSurface iEglSurface;
       
    53     EGLContext iEglContext;
       
    54 	};
       
    55 	
       
    56 // Testname, is used by the test server and the test scripts to identify the test
       
    57 _LIT(KTEglSwapBuffer,"teglswapbuffer");
       
    58 
       
    59 #endif