Fix the issue that webgl displays nothing after returning from home screen.(on target)
authorYongGeol Jung <yg48.jung@samsung.com>
Wed, 10 Apr 2013 06:55:53 +0000 (15:55 +0900)
committerYongGeol Jung <yg48.jung@samsung.com>
Wed, 10 Apr 2013 06:55:53 +0000 (15:55 +0900)
[Title] Fix the issue that webgl displays nothing after returning from home screen.(on target)
[Issue#] N_SE-33336
[Problem] Webgl displays nothing after returning from home screen.
[Cause] Updating flag was not checked.
[Solution] Set updating flag before going to home screen.

Change-Id: If5b38a51ae18bdd8121ac441fc8a11f12f7dae5a

Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp

index 9839d7b..05f6c13 100755 (executable)
@@ -1066,6 +1066,10 @@ void WebGraphicsLayer::removePlatformSurface(int platformSurfaceID)
     if (m_canvasPlatformLayer && m_layerInfo.contentType == WebKit::WebLayerInfo::Canvas2DContentType)
         m_canvasNeedsDisplay = true;
 #endif
+#if ENABLE(WEBGL)
+    if (m_canvasPlatformLayer && m_layerInfo.contentType == WebKit::WebLayerInfo::Canvas3DContentType)
+        m_canvasNeedsDisplay = true;
+#endif
 }
 
 bool WebGraphicsLayer::swapPlatformSurfaces()