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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 12252058: Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix builds 2 Created 7 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 7625f4e14d4702ef2d5f82f7181bedaa48786604..276dda460f08823ad252661dbbc1995831b8350d 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -298,7 +298,8 @@ static bool SubtreeShouldRenderToSeparateSurface(
num_descendants_that_draw_content > 0) {
TRACE_EVENT_INSTANT0(
"cc",
- "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface flattening");
+ "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface flattening",
+ TRACE_EVENT_SCOPE_THREAD);
return true;
}
@@ -310,7 +311,8 @@ static bool SubtreeShouldRenderToSeparateSurface(
!layer->draw_properties().descendants_can_clip_selves) {
TRACE_EVENT_INSTANT0(
"cc",
- "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface clipping");
+ "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface clipping",
+ TRACE_EVENT_SCOPE_THREAD);
return true;
}
@@ -327,7 +329,8 @@ static bool SubtreeShouldRenderToSeparateSurface(
at_least_two_layers_in_subtree_draw_content) {
TRACE_EVENT_INSTANT0(
"cc",
- "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface opacity");
+ "LayerTreeHostCommon::SubtreeShouldRenderToSeparateSurface opacity",
+ TRACE_EVENT_SCOPE_THREAD);
return true;
}
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698