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..09bdd574c5ff7178192b9943012fdbc26e3a6d89 100644 |
--- a/cc/heads_up_display_layer.h |
+++ b/cc/heads_up_display_layer.h |
@@ -11,6 +11,24 @@ |
namespace cc { |
+struct HeadsUpDisplayLayerFlags { |
egraether
2012/11/15 23:37:07
The new structure for storing all the flags that c
|
+ HeadsUpDisplayLayerFlags(); |
+ |
+ bool showFPSCounter; |
+ bool showPlatformLayerTree; |
+ |
+ bool showPaintRects; |
+ bool showPropertyChangedRects; |
+ bool showSurfaceDamageRects; |
+ bool showScreenSpaceRects; |
+ bool showReplicaScreenSpaceRects; |
+ bool showOccludingRects; |
+ bool showNonOccludingRects; |
+ |
+ bool showDebugInfo() const; |
+ bool showDebugRects() const; |
+}; |
+ |
class HeadsUpDisplayLayer : public Layer { |
public: |
static scoped_refptr<HeadsUpDisplayLayer> create(); |
@@ -18,8 +36,13 @@ public: |
virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, RenderingStats&) OVERRIDE; |
virtual bool drawsContent() const OVERRIDE; |
+ void setFlags(HeadsUpDisplayLayerFlags&); |
+ const HeadsUpDisplayLayerFlags& flags() const { return m_flags; } |
+ |
void setFontAtlas(scoped_ptr<FontAtlas>); |
void setShowFPSCounter(bool); |
+ void setShowPaintRects(bool); |
+ void setShowPlatformLayerTree(bool); |
virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
@@ -30,8 +53,8 @@ protected: |
private: |
virtual ~HeadsUpDisplayLayer(); |
+ HeadsUpDisplayLayerFlags m_flags; |
scoped_ptr<FontAtlas> m_fontAtlas; |
- bool m_showFPSCounter; |
}; |
} // namespace cc |