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..149d6b8fe987e87cda3e1b8e4e0842ab6c1a0c0c 100644 |
--- a/cc/heads_up_display_layer.h |
+++ b/cc/heads_up_display_layer.h |
@@ -11,6 +11,26 @@ |
namespace cc { |
+struct HeadsUpDisplayLayerSettings { |
danakj
2012/11/20 22:12:22
I'd rather not tie this to HUD layer so strongly,
|
+ HeadsUpDisplayLayerSettings(); |
+ |
+ bool showFPSCounter; |
+ bool showPlatformLayerTree; |
+ |
+ bool showPaintRects; |
+ bool showPropertyChangedRects; |
+ bool showSurfaceDamageRects; |
+ bool showScreenSpaceRects; |
+ bool showReplicaScreenSpaceRects; |
+ bool showOccludingRects; |
+ bool showNonOccludingRects; |
+ |
+ bool showDebugInfo() const; |
+ bool showDebugRects() const; |
+ |
+ HeadsUpDisplayLayerSettings merge(HeadsUpDisplayLayerSettings& other); |
+}; |
+ |
class HeadsUpDisplayLayer : public Layer { |
public: |
static scoped_refptr<HeadsUpDisplayLayer> create(); |
@@ -18,8 +38,10 @@ public: |
virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, RenderingStats&) OVERRIDE; |
virtual bool drawsContent() const OVERRIDE; |
+ void setSettings(const HeadsUpDisplayLayerSettings& settings) { m_settings = settings; } |
+ const HeadsUpDisplayLayerSettings& settings() const { return m_settings; } |
+ |
void setFontAtlas(scoped_ptr<FontAtlas>); |
- void setShowFPSCounter(bool); |
virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
@@ -30,8 +52,8 @@ protected: |
private: |
virtual ~HeadsUpDisplayLayer(); |
+ HeadsUpDisplayLayerSettings m_settings; |
scoped_ptr<FontAtlas> m_fontAtlas; |
- bool m_showFPSCounter; |
}; |
} // namespace cc |