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

Unified Diff: cc/resources/tile.cc

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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/resources/tile.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index f86330e4b5bdf2b8e947d5b8e9d31909642d25ba..45b4a30816e1958d2065eaffaa4e306d4a75486a 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -48,7 +48,8 @@ Tile::~Tile() {
"cc::Tile", this);
}
-void Tile::AsValueInto(base::trace_event::TracedValue* res) const {
+void Tile::AsValueWithPriorityInto(const TilePriority& priority,
+ base::trace_event::TracedValue* res) const {
TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
TRACE_DISABLED_BY_DEFAULT("cc.debug"), res, "cc::Tile", this);
TracedValue::SetIDRef(raster_source_.get(), res, "picture_pile");
@@ -58,6 +59,8 @@ void Tile::AsValueInto(base::trace_event::TracedValue* res) const {
res->SetInteger("layer_id", layer_id_);
+ // TODO(vmpstr): Remove active and pending priority once tracing is using
+ // combined priority or at least can support both.
res->BeginDictionary("active_priority");
priority_[ACTIVE_TREE].AsValueInto(res);
res->EndDictionary();
@@ -66,6 +69,10 @@ void Tile::AsValueInto(base::trace_event::TracedValue* res) const {
priority_[PENDING_TREE].AsValueInto(res);
res->EndDictionary();
+ res->BeginDictionary("combined_priority");
+ priority.AsValueInto(res);
+ res->EndDictionary();
+
res->BeginDictionary("draw_info");
draw_info_.AsValueInto(res);
res->EndDictionary();
« no previous file with comments | « cc/resources/tile.h ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698