[chromium] Need a way to test lost compositor context recovery
[WebKit-https.git] / Source / WebKit / chromium / src / WebViewImpl.cpp
index be214f7..b87fdd0 100644 (file)
@@ -1186,6 +1186,14 @@ void WebViewImpl::composite(bool finish)
 #endif
 }
 
+void WebViewImpl::loseCompositorContext()
+{
+#if USE(ACCELERATED_COMPOSITING)
+    if (m_layerTreeHost)
+        m_layerTreeHost->loseCompositorContext();
+#endif
+}
+
 const WebInputEvent* WebViewImpl::m_currentInputEvent = 0;
 
 bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent)