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

Unified Diff: cc/layers/layer.h

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase code Created 7 years, 4 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 | « cc/layers/heads_up_display_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 035e071a5fd19a69849d8a097125c4a3817c193f..1a6fb7b7ce94be4337e0163cafd816b91f79c580 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -38,6 +38,7 @@ struct AnimationEvent;
class CopyOutputRequest;
class LayerAnimationDelegate;
class LayerAnimationEventObserver;
+class LayerClient;
class LayerImpl;
class LayerTreeHost;
class LayerTreeImpl;
@@ -292,7 +293,10 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void SetIsMask(bool is_mask) {}
virtual void ReduceMemoryUsage() {}
- void SetDebugName(const std::string& debug_name);
+ virtual std::string DebugName();
+
+ void SetLayerClient(LayerClient* client) { client_ = client; }
+
void SetCompositingReasons(CompositingReasons reasons);
virtual void PushPropertiesTo(LayerImpl* layer);
@@ -514,6 +518,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// Transient properties.
float raster_scale_;
+ LayerClient* client_;
+
ScopedPtrVector<CopyOutputRequest> copy_requests_;
base::Closure did_scroll_callback_;
« no previous file with comments | « cc/layers/heads_up_display_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698