[chromium] Need a way to test lost compositor context recovery
[WebKit-https.git] / Source / WebCore / platform / graphics / chromium / cc / CCLayerTreeHost.cpp
index 9f35918..97e742c 100644 (file)
@@ -134,7 +134,7 @@ void CCLayerTreeHost::compositeAndReadback(void *pixels, const IntRect& rect)
 #if USE(THREADED_COMPOSITING)
     // FIXME: need to implement this.
 #else
-    doComposite();
+    composite(false);
     m_layerRenderer->getFramebufferPixels(pixels, rect);
 #endif
 }
@@ -275,6 +275,11 @@ void CCLayerTreeHost::composite(bool finish)
     }
 }
 
+void CCLayerTreeHost::loseCompositorContext()
+{
+    m_recreatingGraphicsContext = true;
+}
+
 void CCLayerTreeHost::reallocateRenderer()
 {
     RefPtr<LayerRendererChromium> layerRenderer = createLayerRenderer();