Index: webkit/compositor_bindings/web_layer_tree_view_impl.cc |
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
index f58a17da341523c0e98d9860e58a11fb0ab17c1b..bcd6332d65abba4953e4f86ef67ba3128a5c65ce 100644 |
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc |
@@ -184,6 +184,13 @@ void WebLayerTreeViewImpl::setShowFPSCounter(bool show) |
m_layerTreeHost->setDebugState(debugState); |
} |
+void WebLayerTreeViewImpl::setShowPaintRects(bool show) |
+{ |
+ LayerTreeDebugState debugState = m_layerTreeHost->debugState(); |
+ debugState.showPaintRects = show; |
+ m_layerTreeHost->setDebugState(debugState); |
+} |
+ |
scoped_ptr<FontAtlas> WebLayerTreeViewImpl::createFontAtlas() |
{ |
int fontHeight; |