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

Unified Diff: cc/playback/display_item_list.cc

Issue 1354493003: [tracing] Don't use dot-based path expansion in TracedValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cc display list tracing Created 5 years, 3 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 | « base/trace_event/trace_event_argument_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_item_list.cc
diff --git a/cc/playback/display_item_list.cc b/cc/playback/display_item_list.cc
index 1275f3aaa2b9976a1007b7ef56b61836e9989a0b..edc67c00e6da71eb53a47b231f16be8a429b5950 100644
--- a/cc/playback/display_item_list.cc
+++ b/cc/playback/display_item_list.cc
@@ -231,15 +231,16 @@ DisplayItemList::AsValue(bool include_items) const {
scoped_refptr<base::trace_event::TracedValue> state =
new base::trace_event::TracedValue();
+ state->BeginDictionary("params");
if (include_items) {
- state->BeginArray("params.items");
+ state->BeginArray("items");
for (const DisplayItem* item : items_) {
item->AsValueInto(state.get());
}
- state->EndArray();
+ state->EndArray(); // "items".
}
-
- state->SetValue("params.layer_rect", MathUtil::AsValue(layer_rect_));
+ state->SetValue("layer_rect", MathUtil::AsValue(layer_rect_));
+ state->EndDictionary(); // "params".
if (!layer_rect_.IsEmpty()) {
SkPictureRecorder recorder;
« no previous file with comments | « base/trace_event/trace_event_argument_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698