os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstage.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstage.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,51 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +
    1.16 +
    1.17 +/**
    1.18 + @file
    1.19 + @test
    1.20 + @internalComponent - Internal Symbian test code
    1.21 +*/
    1.22 +
    1.23 +
    1.24 +#ifndef __RENDERSTAGE_H__
    1.25 +#define __RENDERSTAGE_H__
    1.26 +
    1.27 +
    1.28 +#include <e32base.h>
    1.29 +#include <graphics/wsrenderstage.h>
    1.30 +
    1.31 +
    1.32 +//This render stage sets up a test thread within window server that waits on
    1.33 +//an asynchonous message queue for test commands that are sent from the TEF driver app.
    1.34 +//All render stage calls are simply forwarded to the next stage in the chain.
    1.35 +class CRenderStage : public CWsRenderStage
    1.36 +    {
    1.37 +public:
    1.38 +    static CRenderStage* NewL(MWsGraphicDrawerEnvironment* /*aEnv*/, MWsScreen* /*aScreen*/, MWsScreenRedraw* /*aScreenRedraw*/, CWsRenderStage* aNextStage);
    1.39 +    ~CRenderStage();
    1.40 +    TAny* ResolveObjectInterface(TUint aTypeId);
    1.41 +    void Begin(const TRegion* aRegion);
    1.42 +    void End(TRequestStatus* aCompositorReady);
    1.43 +
    1.44 +private:
    1.45 +    CRenderStage();
    1.46 +    void ConstructL(CWsRenderStage* aNextStage);
    1.47 +    static TInt TestEnvThreadEntryPoint(TAny* aSelf);
    1.48 +
    1.49 +private:
    1.50 +    RThread iTestEnvThread;
    1.51 +    };
    1.52 +
    1.53 +
    1.54 +#endif