summaryrefslogtreecommitdiffstats
path: root/cc/surfaces/surface_aggregator.cc
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2014-09-04 10:22:49 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-04 17:28:06 +0000
commit1b92b44c5c8493b11db998bec352ad3991499fb6 (patch)
tree7492e9b5316069bb71c748011c1649d13ec3c875 /cc/surfaces/surface_aggregator.cc
parent9a9327cae242b995759ddcfb54df41d1d620c45b (diff)
downloadchromium_src-1b92b44c5c8493b11db998bec352ad3991499fb6.zip
chromium_src-1b92b44c5c8493b11db998bec352ad3991499fb6.tar.gz
chromium_src-1b92b44c5c8493b11db998bec352ad3991499fb6.tar.bz2
Add LatencyInfo support for Surfaces.
BUG= Review URL: https://codereview.chromium.org/539783002 Cr-Commit-Position: refs/heads/master@{#293314}
Diffstat (limited to 'cc/surfaces/surface_aggregator.cc')
-rw-r--r--cc/surfaces/surface_aggregator.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 5ddd832..d9ec296 100644
--- a/cc/surfaces/surface_aggregator.cc
+++ b/cc/surfaces/surface_aggregator.cc
@@ -346,6 +346,14 @@ scoped_ptr<CompositorFrame> SurfaceAggregator::Aggregate(SurfaceId surface_id) {
contained_surfaces_.swap(previous_contained_surfaces_);
contained_surfaces_.clear();
+ for (SurfaceIndexMap::iterator it = previous_contained_surfaces_.begin();
+ it != previous_contained_surfaces_.end();
+ ++it) {
+ Surface* surface = manager_->GetSurfaceForId(it->first);
+ if (surface)
+ surface->TakeLatencyInfo(&frame->metadata.latency_info);
+ }
+
// TODO(jamesr): Aggregate all resource references into the returned frame's
// resource list.