os/graphics/egl/egltest/endpointtestsuite/automated/tinc/egltest_endpointtearing.h
First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 @internalComponent - Internal Symbian test code
26 #ifndef __EGLTEST_ENDPOINTTEARING_H__
27 #define __EGLTEST_ENDPOINTTEARING_H__
30 #include "localtestbase.h"
31 #include "remotetestbase.h"
34 _LIT(KEGL_EndpointTearing, "EGL_EndpointTearing");
35 NONSHARABLE_CLASS(CEglTest_LocalTestStep_EndpointTearing) : public CLocalTestStepBase
38 CEglTest_LocalTestStep_EndpointTearing();
39 ~CEglTest_LocalTestStep_EndpointTearing();
42 TVerdict doTestStepL();
45 void StartDrawThreadL();
46 void StopDrawThread();
47 static TInt DrawThreadEntryPoint(TAny* aSelf);
48 void EnterDrawLoopL();
52 TSurfaceId iSurfaceId;
53 volatile TBool iStopDrawing;
55 RFastLock iFirstDrawDone;
59 NONSHARABLE_CLASS(CEglTest_RemoteTestStep_EndpointTearing) : public CRemoteTestStepBase
62 CEglTest_RemoteTestStep_EndpointTearing();
63 ~CEglTest_RemoteTestStep_EndpointTearing();
65 virtual TRemoteTestVerdict DoRunRemoteTestCaseL(TInt aTestCase, const TRemoteTestParams& aParams);
66 virtual TRemoteTestVerdict DoStartRemoteTestStepL(const TRemoteTestParams& aMessageIn);
67 virtual TRemoteTestVerdict DoEndRemoteTestStepL(const TRemoteTestParams& aMessageIn);
70 TRemoteTestVerdict TearingTestCaseL(const TRemoteTestParams& aParams);
71 TRemoteTestVerdict AcquireAndCheckImageL();
72 TRemoteTestVerdict CheckImageL(EGLImageKHR aEglImage);
76 EGLEndpointNOK iEndpoint;