graphicstest/uibench/src/tgcesuiteserver.cpp
branchRCL_3
changeset 20 25ffed67c7ef
parent 19 bbf46f59e123
equal deleted inserted replaced
19:bbf46f59e123 20:25ffed67c7ef
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    24 #include "tbitbltperf_directgdi.h"
    24 #include "tbitbltperf_directgdi.h"
    25 #include "tsimpledrawing_directgdi.h"
    25 #include "tsimpledrawing_directgdi.h"
    26 #include "tdirectgdiperf.h"
    26 #include "tdirectgdiperf.h"
    27 #include "teventhandlingperf.h"
    27 #include "teventhandlingperf.h"
    28 #include "tflipframerate.h"
    28 #include "tflipframerate.h"
    29 #include "trenderorientation.h"
       
    30 
    29 
    31 /**
    30 /**
    32 Same code for Secure and non-secure variants
    31 Same code for Secure and non-secure variants
    33 Called inside the MainL() function to create and start the
    32 Called inside the MainL() function to create and start the
    34 CTestServer derived server.
    33 CTestServer derived server.
   101 @return - A CTestStep derived instance
   100 @return - A CTestStep derived instance
   102 */
   101 */
   103 CTestStep* CGceSuiteServer::CreateTestStep(const TDesC& aStepName)
   102 CTestStep* CGceSuiteServer::CreateTestStep(const TDesC& aStepName)
   104 	{
   103 	{
   105 	CTestStep* testStep = NULL;
   104 	CTestStep* testStep = NULL;
   106 	
       
   107 	if(aStepName == KTGraphicsResource)
   105 	if(aStepName == KTGraphicsResource)
   108 		testStep = new CTGraphicsResource();
   106 		testStep = new CTGraphicsResource();
   109 	else if(aStepName == KTBitBltPerfDirectGdi)
   107 	else if(aStepName == KTBitBltPerfDirectGdi)
   110 		testStep = new CTBitBltPerfDirectGdi();
   108 		testStep = new CTBitBltPerfDirectGdi();
   111 	else if(aStepName == KTDirectGdiPerfTest)
   109 	else if(aStepName == KTDirectGdiPerfTest)
   113 	else if(aStepName == KTSimpleDrawingPerfDirectGdi)
   111 	else if(aStepName == KTSimpleDrawingPerfDirectGdi)
   114 		testStep = new CTSimpleDrawingDirectGdi();
   112 		testStep = new CTSimpleDrawingDirectGdi();
   115 	else if(aStepName == KEventHandlingPerfName)
   113 	else if(aStepName == KEventHandlingPerfName)
   116 		testStep = new CTEventHandlingPerf();
   114 		testStep = new CTEventHandlingPerf();
   117 	else if(aStepName == KTFlipFramerate)
   115 	else if(aStepName == KTFlipFramerate)
   118 	    testStep = new CTFlipFramerate();
   116 	    testStep = new CTFlipFramerate;
   119 	else if(aStepName == KTRenderOrientation)
       
   120 	    testStep = new CTRenderOrientation;
       
   121 	
       
   122 	return testStep;
   117 	return testStep;
   123 	}
   118 	}