|
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 |
|
56 // Testname, is used by the test server and the test scripts to identify the test |
|
57 _LIT(KBenchmark_SwapBuffers, "Benchmark_SwapBuffers"); |
|
58 |
|
59 #endif |