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

Unified Diff: cc/layers/heads_up_display_layer.cc

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get debug name in Update() Created 7 years, 5 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/heads_up_display_layer.cc
diff --git a/cc/layers/heads_up_display_layer.cc b/cc/layers/heads_up_display_layer.cc
index 92486cc851599a7b7a7b7bd7c4b3a741d4fd9dfa..cfbd7ce155bad97a963148d1b636aba738f05897 100644
--- a/cc/layers/heads_up_display_layer.cc
+++ b/cc/layers/heads_up_display_layer.cc
@@ -55,4 +55,10 @@ scoped_ptr<LayerImpl> HeadsUpDisplayLayer::CreateLayerImpl(
PassAs<LayerImpl>();
}
+std::string HeadsUpDisplayLayer::DebugName() {
+ bool is_tracing;
+ TRACE_EVENT_CATEGORY_GROUP_ENABLED("cc", &is_tracing);
enne (OOO) 2013/08/02 17:58:17 No need for the trace event check here. The calle
qiankun 2013/08/05 06:54:15 Done.
+ return is_tracing ? std::string("Heads Up Display Layer") : std::string();
+}
+
} // namespace cc
« no previous file with comments | « cc/layers/heads_up_display_layer.h ('k') | cc/layers/layer.h » ('j') | cc/layers/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698