Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
17 @internalComponent - Internal Symbian test code
21 #include "renderstagefactory.h"
22 #include "renderstage.h"
25 _LIT(KRenderStageName, "eglendpointremotetest");
28 CRenderStageFactory* CRenderStageFactory::CreateL()
30 return new(ELeave) CRenderStageFactory;
34 //aData contains data specific to the plugin that was included in wsini.ini.
35 //EglEndpointTestRenderStage has no such defined data. Therefore ignore it.
36 void CRenderStageFactory::ConstructL(MWsGraphicDrawerEnvironment& aEnv, const TDesC8& /*aData*/)
42 CRenderStageFactory::CRenderStageFactory()
47 CRenderStageFactory::~CRenderStageFactory()
52 TAny* CRenderStageFactory::ResolveObjectInterface(TUint aTypeId)
56 case KMWsRenderStageFactory:
57 return static_cast<MWsRenderStageFactory*>(this);
64 //EglEndpointTestRenderStage cannot be used as the last render stage in the chain. Therefore return NULL here.
65 CWsRenderStage* CRenderStageFactory::CreateFinalRenderStageL(MWsScreen* /*aScreen*/, MWsScreenRedraw* /*aScreenRedraw*/, TInt /*aScreenNumber*/)
71 CWsRenderStage* CRenderStageFactory::CreateRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, CWsRenderStage* aNextStage)
73 return CRenderStage::NewL(&Env(), aScreen, aScreenRedraw, aNextStage);
77 const TDesC& CRenderStageFactory::PluginName() const
79 return KRenderStageName;