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

Unified Diff: cc/heads_up_display_layer.h

Issue 11413123: cc: switch to new WebLayerTreeViewClient API for requesting font atlas (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed WebKit tests for patch #1 Created 8 years, 1 month 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/layer_tree_host.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 d980cfcf2027101c00788701a5c226ca46752291..0a16d0f719fd7875f6d01d5cdaf1a3ae2cf7b8da 100644
--- a/cc/heads_up_display_layer.h
+++ b/cc/heads_up_display_layer.h
@@ -24,6 +24,8 @@ public:
virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE;
virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
+ bool hasFontAtlas() const { return m_hasFontAtlas; }
+
protected:
HeadsUpDisplayLayer();
@@ -32,6 +34,8 @@ private:
scoped_ptr<FontAtlas> m_fontAtlas;
bool m_showFPSCounter;
+
+ bool m_hasFontAtlas;
jamesr 2012/11/27 21:07:44 why do we need a bool? Can't we just null-check m_
danakj 2012/11/27 21:26:14 This seems needed to remember we gave a font atlas
egraether 2012/11/27 21:49:22 Yeah, it's there because as soon as the fontAtlas
};
} // namespace cc
« no previous file with comments | « no previous file | cc/heads_up_display_layer.cc » ('j') | cc/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698