Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(891)

Unified Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11418259: cc: Toggling paint rects with the WebLayerTreeView::setShowPaintRects() API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 170991 Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698