os/graphics/egl/egltest/endpointtestsuite/automated/inc/renderstagefactory.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 __RENDERSTAGEFACTORY_H__
    22 #define __RENDERSTAGEFACTORY_H__
    23 
    24 
    25 #include <graphics/wsplugin.h>
    26 #include <graphics/wsrenderstagefactory.h>
    27 
    28 
    29 //This provides the wserv interface for creating instances of CRenderStage
    30 class CRenderStageFactory : public CWsPlugin, public MWsRenderStageFactory
    31 	{
    32 public:
    33 	enum { EImplUid = 0xA000E082 };
    34 
    35 public:
    36 	static CRenderStageFactory* CreateL();
    37 	~CRenderStageFactory();
    38 	void ConstructL(MWsGraphicDrawerEnvironment& aEnv, const TDesC8& aData);
    39 	const TDesC& PluginName() const;
    40 
    41 public: // MWsObjectProvider
    42 	TAny* ResolveObjectInterface(TUint aTypeId);
    43 
    44 public: // MWsRenderStageFactory
    45 	CWsRenderStage* CreateFinalRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, TInt aScreenNumber);
    46 	CWsRenderStage* CreateRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, CWsRenderStage* aNextStage);
    47 
    48 private:
    49     CRenderStageFactory();
    50 	};
    51 
    52 
    53 #endif