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

Unified Diff: cc/resources/tile.cc

Issue 493543002: cc: Report only on active tiles in tracing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index 87e1e46eb2b1ce213839a1b6883612111fc11d0e..8fe66a5b5db86358a954187b56e5d78b3617edc2 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -62,11 +62,12 @@ void Tile::MarkRequiredForActivation() {
tile_manager_->DidChangeTilePriority(this);
}
-void Tile::AsValueInto(base::debug::TracedValue* res) const {
+void Tile::AsValueInto(base::debug::TracedValue* res, bool is_active) const {
TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
TRACE_DISABLED_BY_DEFAULT("cc.debug"), res, "cc::Tile", this);
TracedValue::SetIDRef(picture_pile_.get(), res, "picture_pile");
res->SetDouble("contents_scale", contents_scale_);
+ res->SetBoolean("is_active_tile", is_active);
res->BeginArray("content_rect");
MathUtil::AddToTracedValue(content_rect_, res);

Powered by Google App Engine
This is Rietveld 408576698