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

Unified Diff: cc/debug/frame_viewer_instrumentation.cc

Issue 924973003: CC: Force push properties for all layers when tracing is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added root_layer() check Created 5 years, 9 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/debug/frame_viewer_instrumentation.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/frame_viewer_instrumentation.cc
diff --git a/cc/debug/frame_viewer_instrumentation.cc b/cc/debug/frame_viewer_instrumentation.cc
index 53c155166b8b3f5f21549d12e88e226945b606d8..226cc88e1185da138a9eadc26eac2272ccbf586c 100644
--- a/cc/debug/frame_viewer_instrumentation.cc
+++ b/cc/debug/frame_viewer_instrumentation.cc
@@ -6,6 +6,12 @@
namespace cc {
namespace frame_viewer_instrumentation {
+
+const char kCategoryLayerTree[] =
+ TRACE_DISABLED_BY_DEFAULT("cc.debug") ","
+ TRACE_DISABLED_BY_DEFAULT("cc.debug.quads") ","
+ TRACE_DISABLED_BY_DEFAULT("devtools.timeline.layers");
+
namespace {
const char kCategory[] = "cc," TRACE_DISABLED_BY_DEFAULT("devtools.timeline");
@@ -60,5 +66,11 @@ ScopedRasterTask::~ScopedRasterTask() {
TRACE_EVENT_END0(kCategory, kRasterTask);
}
+bool IsTracingLayerTreeSnapshots() {
+ bool category_enabled;
+ TRACE_EVENT_CATEGORY_GROUP_ENABLED(kCategoryLayerTree, &category_enabled);
+ return category_enabled;
+}
+
} // namespace frame_viewer_instrumentation
} // namespace cc
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.h ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698