|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @test |
|
22 @internalComponent - Internal Symbian test code |
|
23 */ |
|
24 |
|
25 |
|
26 #ifndef __EGLTEST_ENDPOINTTEARING_H__ |
|
27 #define __EGLTEST_ENDPOINTTEARING_H__ |
|
28 |
|
29 |
|
30 #include "localtestbase.h" |
|
31 #include "remotetestbase.h" |
|
32 |
|
33 |
|
34 _LIT(KEGL_EndpointTearing, "EGL_EndpointTearing"); |
|
35 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointTearing) : public CLocalTestStepBase |
|
36 { |
|
37 public: |
|
38 CEglTest_LocalTestStep_EndpointTearing(); |
|
39 ~CEglTest_LocalTestStep_EndpointTearing(); |
|
40 void DoPreambleL(); |
|
41 void DoPostambleL(); |
|
42 TVerdict doTestStepL(); |
|
43 |
|
44 private: |
|
45 void StartDrawThreadL(); |
|
46 void StopDrawThread(); |
|
47 static TInt DrawThreadEntryPoint(TAny* aSelf); |
|
48 void EnterDrawLoopL(); |
|
49 |
|
50 private: |
|
51 RThread iDrawThread; |
|
52 TSurfaceId iSurfaceId; |
|
53 volatile TBool iStopDrawing; |
|
54 RFastLock iStartDraw; |
|
55 RFastLock iFirstDrawDone; |
|
56 }; |
|
57 |
|
58 |
|
59 NONSHARABLE_CLASS(CEglTest_RemoteTestStep_EndpointTearing) : public CRemoteTestStepBase |
|
60 { |
|
61 public: |
|
62 CEglTest_RemoteTestStep_EndpointTearing(); |
|
63 ~CEglTest_RemoteTestStep_EndpointTearing(); |
|
64 |
|
65 virtual TRemoteTestVerdict DoRunRemoteTestCaseL(TInt aTestCase, const TRemoteTestParams& aParams); |
|
66 virtual TRemoteTestVerdict DoStartRemoteTestStepL(const TRemoteTestParams& aMessageIn); |
|
67 virtual TRemoteTestVerdict DoEndRemoteTestStepL(const TRemoteTestParams& aMessageIn); |
|
68 |
|
69 private: |
|
70 TRemoteTestVerdict TearingTestCaseL(const TRemoteTestParams& aParams); |
|
71 TRemoteTestVerdict AcquireAndCheckImageL(); |
|
72 TRemoteTestVerdict CheckImageL(EGLImageKHR aEglImage); |
|
73 |
|
74 private: |
|
75 EGLDisplay iDisplay; |
|
76 EGLEndpointNOK iEndpoint; |
|
77 }; |
|
78 |
|
79 |
|
80 #endif |