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

Unified Diff: cc/heads_up_display_layer.h

Issue 11414017: cc: handling debug settings in new LayerTreeDebugState structure (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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

Powered by Google App Engine
This is Rietveld 408576698