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

Unified Diff: cc/surfaces/surface_aggregator.cc

Issue 511423004: Add LatencyInfo support for Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « cc/surfaces/surface.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.cc
diff --git a/cc/surfaces/surface_aggregator.cc b/cc/surfaces/surface_aggregator.cc
index 5ddd832d09a6b31fb813559819f624d011fb65c8..d9ec2961cee0915bdf01bb2b42e88211fc2a6eb9 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.
« no previous file with comments | « cc/surfaces/surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698