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

Unified Diff: cc/heads_up_display_layer.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added DCHECKs and moved hasFontAtlas into HUDLayer 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
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/heads_up_display_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/heads_up_display_layer.h
diff --git a/cc/heads_up_display_layer.h b/cc/heads_up_display_layer.h
index 9d087c0e4bec8ceea415b850e6b4e18080fcb1ad..09cc4a2116a8e4f4acf00a3b8540710dc48f1b56 100644
--- a/cc/heads_up_display_layer.h
+++ b/cc/heads_up_display_layer.h
@@ -19,7 +19,9 @@ public:
virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingStats&) OVERRIDE;
virtual bool drawsContent() const OVERRIDE;
+ bool hasFontAtlas() const;
void setFontAtlas(scoped_ptr<CCFontAtlas>);
+ void setShowFPSCounter(bool);
virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
@@ -31,6 +33,8 @@ private:
virtual ~HeadsUpDisplayLayerChromium();
scoped_ptr<CCFontAtlas> m_fontAtlas;
+ bool m_showFPSCounter;
+ bool m_hasFontAtlas;
};
} // namespace cc
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/heads_up_display_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698