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

Unified Diff: cc/layer_tree_host.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: Use flags to record scope Created 7 years, 10 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/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 531eab6e8d881d39896443e1291f641e40139440..12d1f518e332537a583f177d7666ffd7ef6d1d20 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -425,7 +425,8 @@ void LayerTreeHost::setNeedsAnimate()
void LayerTreeHost::setNeedsCommit()
{
if (!m_prepaintCallback.IsCancelled()) {
- TRACE_EVENT_INSTANT0("cc", "LayerTreeHost::setNeedsCommit::cancel prepaint");
+ TRACE_EVENT_INSTANT0("cc", "LayerTreeHost::setNeedsCommit::cancel prepaint",
+ TRACE_EVENT_SCOPE_THREAD);
m_prepaintCallback.Cancel();
}
m_proxy->setNeedsCommit();

Powered by Google App Engine
This is Rietveld 408576698