sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: @internalComponent - Internal Symbian test code sl@0: */ sl@0: sl@0: sl@0: #include "renderstagefactory.h" sl@0: #include "renderstage.h" sl@0: sl@0: sl@0: _LIT(KRenderStageName, "eglendpointremotetest"); sl@0: sl@0: sl@0: CRenderStageFactory* CRenderStageFactory::CreateL() sl@0: { sl@0: return new(ELeave) CRenderStageFactory; sl@0: } sl@0: sl@0: sl@0: //aData contains data specific to the plugin that was included in wsini.ini. sl@0: //EglEndpointTestRenderStage has no such defined data. Therefore ignore it. sl@0: void CRenderStageFactory::ConstructL(MWsGraphicDrawerEnvironment& aEnv, const TDesC8& /*aData*/) sl@0: { sl@0: BaseConstructL(aEnv); sl@0: } sl@0: sl@0: sl@0: CRenderStageFactory::CRenderStageFactory() sl@0: { sl@0: } sl@0: sl@0: sl@0: CRenderStageFactory::~CRenderStageFactory() sl@0: { sl@0: } sl@0: sl@0: sl@0: TAny* CRenderStageFactory::ResolveObjectInterface(TUint aTypeId) sl@0: { sl@0: switch (aTypeId) sl@0: { sl@0: case KMWsRenderStageFactory: sl@0: return static_cast(this); sl@0: default: sl@0: return NULL; sl@0: } sl@0: } sl@0: sl@0: sl@0: //EglEndpointTestRenderStage cannot be used as the last render stage in the chain. Therefore return NULL here. sl@0: CWsRenderStage* CRenderStageFactory::CreateFinalRenderStageL(MWsScreen* /*aScreen*/, MWsScreenRedraw* /*aScreenRedraw*/, TInt /*aScreenNumber*/) sl@0: { sl@0: return NULL; sl@0: } sl@0: sl@0: sl@0: CWsRenderStage* CRenderStageFactory::CreateRenderStageL(MWsScreen* aScreen, MWsScreenRedraw* aScreenRedraw, CWsRenderStage* aNextStage) sl@0: { sl@0: return CRenderStage::NewL(&Env(), aScreen, aScreenRedraw, aNextStage); sl@0: } sl@0: sl@0: sl@0: const TDesC& CRenderStageFactory::PluginName() const sl@0: { sl@0: return KRenderStageName; sl@0: }