summaryrefslogtreecommitdiffstats
path: root/cc/debug/frame_viewer_instrumentation.cc
diff options
context:
space:
mode:
authorcaseq <caseq@chromium.org>2015-03-17 11:39:35 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-17 18:40:11 +0000
commit4a4b55844b0cff76d33734555fd3267f0da7826e (patch)
tree22385071a91b1724bfb1f06b1ce9691f838cd033 /cc/debug/frame_viewer_instrumentation.cc
parente2db68ee5c607f2f63208d50679343ec27814f8d (diff)
downloadchromium_src-4a4b55844b0cff76d33734555fd3267f0da7826e.zip
chromium_src-4a4b55844b0cff76d33734555fd3267f0da7826e.tar.gz
chromium_src-4a4b55844b0cff76d33734555fd3267f0da7826e.tar.bz2
CC: Force push properties for all layers when tracing is started
... provided categories that cause layer tree snapshots to be traced are enabled. We need this so that we can show owner nodes for layers that were not updated on the main thread side for a while. BUG= Review URL: https://codereview.chromium.org/924973003 Cr-Commit-Position: refs/heads/master@{#320947}
Diffstat (limited to 'cc/debug/frame_viewer_instrumentation.cc')
-rw-r--r--cc/debug/frame_viewer_instrumentation.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/cc/debug/frame_viewer_instrumentation.cc b/cc/debug/frame_viewer_instrumentation.cc
index 53c1551..226cc88 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