diff -r 000000000000 -r bde4ae8d615e os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstage.h Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,51 @@ +// 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: + + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + + +#ifndef __RENDERSTAGE_H__ +#define __RENDERSTAGE_H__ + + +#include +#include + + +//This render stage sets up a test thread within window server that waits on +//an asynchonous message queue for test commands that are sent from the TEF driver app. +//All render stage calls are simply forwarded to the next stage in the chain. +class CRenderStage : public CWsRenderStage + { +public: + static CRenderStage* NewL(MWsGraphicDrawerEnvironment* /*aEnv*/, MWsScreen* /*aScreen*/, MWsScreenRedraw* /*aScreenRedraw*/, CWsRenderStage* aNextStage); + ~CRenderStage(); + TAny* ResolveObjectInterface(TUint aTypeId); + void Begin(const TRegion* aRegion); + void End(TRequestStatus* aCompositorReady); + +private: + CRenderStage(); + void ConstructL(CWsRenderStage* aNextStage); + static TInt TestEnvThreadEntryPoint(TAny* aSelf); + +private: + RThread iTestEnvThread; + }; + + +#endif