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

Unified Diff: cc/heads_up_display_layer_impl.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: plumbing 'showFPSCounter' through HUD, added 'createHUDLayerIfNeeded' Created 8 years, 2 months 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
Index: cc/heads_up_display_layer_impl.h
diff --git a/cc/heads_up_display_layer_impl.h b/cc/heads_up_display_layer_impl.h
index 69e550a4c02c6af37eca804389921e8a28eba2b4..8c46733dd2d1238d3ac653dfa13b3e117b297ce9 100644
--- a/cc/heads_up_display_layer_impl.h
+++ b/cc/heads_up_display_layer_impl.h
@@ -27,6 +27,7 @@ public:
virtual ~CCHeadsUpDisplayLayerImpl();
void setFontAtlas(scoped_ptr<CCFontAtlas>);
+ void setShowFPSCounter(bool);
virtual void willDraw(CCResourceProvider*) OVERRIDE;
virtual void appendQuads(CCQuadSink&, CCAppendQuadsData&) OVERRIDE;
@@ -50,6 +51,8 @@ private:
scoped_ptr<CCFontAtlas> m_fontAtlas;
scoped_ptr<CCScopedTexture> m_hudTexture;
scoped_ptr<SkCanvas> m_hudCanvas;
+
+ bool m_showFPSCounter;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698