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

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: get debug name on demand Created 7 years, 6 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
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 91972b35204d701e4278fdf1a0fa0e1d8ff0319e..7319a727d10e2aeee5f451853e0983ca6d0ea76a 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -290,6 +290,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void ReduceMemoryUsage() {}
void SetDebugName(const std::string& debug_name);
+ virtual std::string DebugName() { return debug_name_; }
+
void SetCompositingReasons(CompositingReasons reasons);
virtual void PushPropertiesTo(LayerImpl* layer);
« no previous file with comments | « cc/layers/content_layer_client.h ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698