summaryrefslogtreecommitdiffstats
path: root/cc/scheduler
diff options
context:
space:
mode:
authormithro <mithro@mithis.com>2014-10-09 04:38:39 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-09 11:38:56 +0000
commita232a39e340edd71aa808bc069d65fdb6314d7af (patch)
tree9037847dd5f451b7b3bfe2f60b52f6c9ce7e2ee8 /cc/scheduler
parent17a26f166e7eab81b1318d6c5ab31c3c6ef91de9 (diff)
downloadchromium_src-a232a39e340edd71aa808bc069d65fdb6314d7af.zip
chromium_src-a232a39e340edd71aa808bc069d65fdb6314d7af.tar.gz
chromium_src-a232a39e340edd71aa808bc069d65fdb6314d7af.tar.bz2
Make BeginFrameSourceMultiplexer::AsValueInto use (Begin/End)Array tracing functions.
Didn't know these functions existed originally. Review URL: https://codereview.chromium.org/637913004 Cr-Commit-Position: refs/heads/master@{#298849}
Diffstat (limited to 'cc/scheduler')
-rw-r--r--cc/scheduler/begin_frame_source.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/scheduler/begin_frame_source.cc b/cc/scheduler/begin_frame_source.cc
index a5d859f..4a9f184 100644
--- a/cc/scheduler/begin_frame_source.cc
+++ b/cc/scheduler/begin_frame_source.cc
@@ -458,14 +458,15 @@ void BeginFrameSourceMultiplexer::AsValueInto(
dict->SetString("active_source", "NULL");
}
+ dict->BeginArray("sources");
for (std::set<BeginFrameSource*>::const_iterator it = source_list_.begin();
it != source_list_.end();
++it) {
- dict->BeginDictionary(
- base::SizeTToString(std::distance(source_list_.begin(), it)).c_str());
+ dict->BeginDictionary();
(*it)->AsValueInto(dict);
dict->EndDictionary();
}
+ dict->EndArray();
}
// protected methods