svgtopt/gfx2d/src/GfxGc/Gfx2dGcOpenVG.cpp
branchRCL_3
changeset 11 d240fe32a15c
parent 0 d46562c3d99d
child 12 b52e29b42806
equal deleted inserted replaced
10:95afc90a94ae 11:d240fe32a15c
  2872 // These are for work-around for OpenVG to simulate multiple contexts
  2872 // These are for work-around for OpenVG to simulate multiple contexts
  2873 void CGfx2dGcOpenVG::SetupContextL()
  2873 void CGfx2dGcOpenVG::SetupContextL()
  2874 {
  2874 {
  2875     // Ensure OpenVG is initialized: could have been terminated by another Svg engine
  2875     // Ensure OpenVG is initialized: could have been terminated by another Svg engine
  2876     // Returns immediately if already initialized
  2876     // Returns immediately if already initialized
  2877          TInt err = iVgSurface->InitializeSurface( iColorBufferSize, VGI_COLORSPACE_SRGB );//NGA    --- testing purpose//srikanth
  2877          TInt err = iVgSurface->InitializeSurface( iColorBufferSize, VGI_COLORSPACE_SRGB );
  2878         if (!((err == KErrNone) || (err == KErrAlreadyExists)))
  2878         if (!((err == KErrNone) || (err == KErrAlreadyExists)))
  2879             {
  2879             {
  2880             #ifdef _DEBUG
  2880             #ifdef _DEBUG
  2881             RDebug::Printf("SVG can't initialize OpenVG Context %d", err);
  2881             RDebug::Printf("SVG can't initialize OpenVG Context %d", err);
  2882             #endif
  2882             #endif