graphicstest/uibench/src/tgcesuiteserver.cpp
changeset 188 1b081cb0800b
parent 187 9f66f99ee56f
equal deleted inserted replaced
187:9f66f99ee56f 188:1b081cb0800b
    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"
    29 
    30 
    30 /**
    31 /**
    31 Same code for Secure and non-secure variants
    32 Same code for Secure and non-secure variants
    32 Called inside the MainL() function to create and start the
    33 Called inside the MainL() function to create and start the
    33 CTestServer derived server.
    34 CTestServer derived server.
   100 @return - A CTestStep derived instance
   101 @return - A CTestStep derived instance
   101 */
   102 */
   102 CTestStep* CGceSuiteServer::CreateTestStep(const TDesC& aStepName)
   103 CTestStep* CGceSuiteServer::CreateTestStep(const TDesC& aStepName)
   103 	{
   104 	{
   104 	CTestStep* testStep = NULL;
   105 	CTestStep* testStep = NULL;
       
   106 	
   105 	if(aStepName == KTGraphicsResource)
   107 	if(aStepName == KTGraphicsResource)
   106 		testStep = new CTGraphicsResource();
   108 		testStep = new CTGraphicsResource();
   107 	else if(aStepName == KTBitBltPerfDirectGdi)
   109 	else if(aStepName == KTBitBltPerfDirectGdi)
   108 		testStep = new CTBitBltPerfDirectGdi();
   110 		testStep = new CTBitBltPerfDirectGdi();
   109 	else if(aStepName == KTDirectGdiPerfTest)
   111 	else if(aStepName == KTDirectGdiPerfTest)
   112 		testStep = new CTSimpleDrawingDirectGdi();
   114 		testStep = new CTSimpleDrawingDirectGdi();
   113 	else if(aStepName == KEventHandlingPerfName)
   115 	else if(aStepName == KEventHandlingPerfName)
   114 		testStep = new CTEventHandlingPerf();
   116 		testStep = new CTEventHandlingPerf();
   115 	else if(aStepName == KTFlipFramerate)
   117 	else if(aStepName == KTFlipFramerate)
   116 	    testStep = new CTFlipFramerate();
   118 	    testStep = new CTFlipFramerate();
       
   119 	else if(aStepName == KTRenderOrientation)
       
   120 	    testStep = new CTRenderOrientation;
       
   121 	
   117 	return testStep;
   122 	return testStep;
   118 	}
   123 	}