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

Unified Diff: cc/resources/display_item_list.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/display_item.h ('k') | cc/resources/drawing_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_item_list.cc
diff --git a/cc/resources/display_item_list.cc b/cc/resources/display_item_list.cc
index b27dea0d6b76f785b0898a01c95f51edcc408167..7a6929a1a5b7d1769612f85c4c50711ece337957 100644
--- a/cc/resources/display_item_list.cc
+++ b/cc/resources/display_item_list.cc
@@ -71,6 +71,11 @@ scoped_refptr<base::debug::ConvertableToTraceFormat> DisplayItemList::AsValue()
new base::debug::TracedValue();
state->SetInteger("length", items_.size());
+ state->BeginArray("params.items");
+ for (const DisplayItem* item : items_) {
+ item->AsValueInto(state.get());
+ }
+ state->EndArray();
state->SetValue("params.layer_rect",
MathUtil::AsValue(layer_rect_).release());
« no previous file with comments | « cc/resources/display_item.h ('k') | cc/resources/drawing_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698