os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstage.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 
    14 /**
    15  @file
    16  @test
    17  @internalComponent - Internal Symbian test code
    18 */
    19 
    20 
    21 #ifndef __RENDERSTAGE_H__
    22 #define __RENDERSTAGE_H__
    23 
    24 
    25 #include <e32base.h>
    26 #include <graphics/wsrenderstage.h>
    27 
    28 
    29 //This render stage sets up a test thread within window server that waits on
    30 //an asynchonous message queue for test commands that are sent from the TEF driver app.
    31 //All render stage calls are simply forwarded to the next stage in the chain.
    32 class CRenderStage : public CWsRenderStage
    33     {
    34 public:
    35     static CRenderStage* NewL(MWsGraphicDrawerEnvironment* /*aEnv*/, MWsScreen* /*aScreen*/, MWsScreenRedraw* /*aScreenRedraw*/, CWsRenderStage* aNextStage);
    36     ~CRenderStage();
    37     TAny* ResolveObjectInterface(TUint aTypeId);
    38     void Begin(const TRegion* aRegion);
    39     void End(TRequestStatus* aCompositorReady);
    40 
    41 private:
    42     CRenderStage();
    43     void ConstructL(CWsRenderStage* aNextStage);
    44     static TInt TestEnvThreadEntryPoint(TAny* aSelf);
    45 
    46 private:
    47     RThread iTestEnvThread;
    48     };
    49 
    50 
    51 #endif