cc: Toggling paint rects with the WebLayerTreeView::setShowPaintRects() API

BUG=130663


Review URL: https://chromiumcodereview.appspot.com/11418259

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171095 0039d316-1c4b-4281-b951-d872f2087c98
parent 19a1b392
...@@ -184,6 +184,13 @@ void WebLayerTreeViewImpl::setShowFPSCounter(bool show) ...@@ -184,6 +184,13 @@ void WebLayerTreeViewImpl::setShowFPSCounter(bool show)
m_layerTreeHost->setDebugState(debugState); 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() scoped_ptr<FontAtlas> WebLayerTreeViewImpl::createFontAtlas()
{ {
int fontHeight; int fontHeight;
......
...@@ -52,6 +52,7 @@ public: ...@@ -52,6 +52,7 @@ public:
virtual void setDeferCommits(bool deferCommits) OVERRIDE; virtual void setDeferCommits(bool deferCommits) OVERRIDE;
virtual void renderingStats(WebRenderingStats&) const OVERRIDE; virtual void renderingStats(WebRenderingStats&) const OVERRIDE;
virtual void setShowFPSCounter(bool show); virtual void setShowFPSCounter(bool show);
virtual void setShowPaintRects(bool show);
virtual void loseCompositorContext(int numTimes) OVERRIDE; virtual void loseCompositorContext(int numTimes) OVERRIDE;
// cc::LayerTreeHostClient implementation. // cc::LayerTreeHostClient implementation.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment