egl/egltest/src/egltestcommoninisettings.cpp
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
   151     if(iIniData->FindVar(aSectioName, KKeyBufferWidth, size.iWidth) && 
   151     if(iIniData->FindVar(aSectioName, KKeyBufferWidth, size.iWidth) && 
   152             iIniData->FindVar(aSectioName, KKeyBufferHeight, size.iHeight))
   152             iIniData->FindVar(aSectioName, KKeyBufferHeight, size.iHeight))
   153         {
   153         {
   154         return size;
   154         return size;
   155         }
   155         }
   156 
       
   157     return TSize(0,0);
   156     return TSize(0,0);
   158    }
   157    }
   159 
   158 
       
   159 EXPORT_C TSize CEglTestCommonIniSettings::GetWindowSize(const TDesC& aSectioName)
       
   160     {
       
   161     _LIT(KKeyWindowWidth, "WindowWidth");
       
   162     _LIT(KKeyWindowHeight, "WindowHeight");
       
   163     TSize size(0, 0);
       
   164     if(iIniData->FindVar(aSectioName, KKeyWindowWidth, size.iWidth) && 
       
   165             iIniData->FindVar(aSectioName, KKeyWindowHeight, size.iHeight))
       
   166         {
       
   167         return size;
       
   168         }
       
   169 	return TSize(0,0);
       
   170    }
       
   171 
       
   172 EXPORT_C TInt CEglTestCommonIniSettings::GetThresholdGPUUsedMemory(const TDesC& aSectioName)
       
   173     {
       
   174     _LIT(KKeyThresholdGPUUsedMemory, "ThresholdGPUUsedMemory");
       
   175     TInt thresholdGPUUsedMemory = 0;
       
   176     if(iIniData->FindVar(aSectioName, KKeyThresholdGPUUsedMemory, thresholdGPUUsedMemory))
       
   177         {
       
   178         return thresholdGPUUsedMemory;
       
   179         }
       
   180     return 0;
       
   181    }
       
   182 
       
   183 EXPORT_C TInt CEglTestCommonIniSettings::GetThresholdLastIteration(const TDesC& aSectioName)
       
   184     {
       
   185     _LIT(KKeyThresholdLastIteration, "ThresholdLastIteration");
       
   186     TInt thresholdLastIteration = 0;
       
   187     if(iIniData->FindVar(aSectioName, KKeyThresholdLastIteration, thresholdLastIteration))
       
   188         {
       
   189         return thresholdLastIteration;
       
   190         }
       
   191     return 0;
       
   192    }