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

Unified Diff: cc/layers/layer_impl.cc

Issue 20667002: cc: Add frame data to LTHI tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add category thing Created 7 years, 4 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/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 480cee0db3683360c8419e65cc2c564d09ca2c90..0385039d0ddeb87690bb3480c955760c9987de66 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -69,6 +69,8 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
}
LayerImpl::~LayerImpl() {
+ TRACE_EVENT_OBJECT_DELETED_WITH_ID(
+ TRACE_DISABLED_BY_DEFAULT("cc.debug"), "cc::LayerImpl", this);
DCHECK_EQ(DRAW_MODE_NONE, current_draw_mode_);
layer_tree_impl_->UnregisterLayer(this);
@@ -1113,7 +1115,8 @@ CompositingReasonsAsValue(CompositingReasons reasons) {
}
void LayerImpl::AsValueInto(base::DictionaryValue* state) const {
- TracedValue::MakeDictIntoImplicitSnapshot(state, LayerTypeAsString(), this);
+ TracedValue::MakeDictIntoImplicitSnapshot(
+ TRACE_DISABLED_BY_DEFAULT("cc.debug"), state, LayerTypeAsString(), this);
state->SetInteger("layer_id", id());
state->Set("bounds", MathUtil::AsValue(bounds()).release());
state->SetInteger("draws_content", DrawsContent());

Powered by Google App Engine
This is Rietveld 408576698