egl/egltest/inc/egltest_benchmark_swapbuffers.h
author Pat Downey <patd@symbian.org>
Thu, 24 Jun 2010 11:26:02 +0100
changeset 102 f4d9a5ce4604
parent 36 01a6848ebfd7
child 160 969102054596
permissions -rw-r--r--
Re-merge fixes for bug 1362, bug 1666, bug 1863, KhronosRI and bld.inf.

// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
// 

/**
 @file
 @test
*/
 
#ifndef EGLTEST_BENCHMARK_SWAPBUFFERS_H
#define EGLTEST_BENCHMARK_SWAPBUFFERS_H

#include "eglteststep.h"
#include <EGL/egl.h>

class CTProfiler;

NONSHARABLE_CLASS(CEglTest_Benchmark_SwapBuffers) : public CEglTestStep
	{
public:
    CEglTest_Benchmark_SwapBuffers();
    virtual ~CEglTest_Benchmark_SwapBuffers();
	
private:
	// From CTestStep
    virtual TVerdict doTestStepPreambleL();
    virtual TVerdict doTestStepPostambleL();
    virtual TVerdict doTestStepL();
	
	void EglSwapBufferL();
	void EglSwapBufferRegionL();
	void EglSwapBufferRegionStressL(EGLint aCount);
	
private:
    RWsSession iWs;
    RWindowGroup iWindowGroup;
    RWindow iWindow;
    
    EGLSurface iEglSurface;
    EGLContext iEglContext;
    CTProfiler* iProfiler;
    TSize iWindowSize;
	};
	
// Testname, is used by the test server and the test scripts to identify the test
_LIT(KBenchmark_SwapBuffers, "Benchmark_SwapBuffers");

#endif