equal
deleted
inserted
replaced
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 |