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

Unified Diff: content/browser/compositor/delegated_frame_host.cc

Issue 597683002: Copy LatencyInfo from renderer into corresponding Surface. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/delegated_frame_host.cc
diff --git a/content/browser/compositor/delegated_frame_host.cc b/content/browser/compositor/delegated_frame_host.cc
index 28d586b3d694ed0ce9d0c38470776721b4172560..70b93ae08e9f8ddb6a36c3e7d02eae4367211681 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -391,6 +391,13 @@ void DelegatedFrameHost::SwapDelegatedFrame(
scoped_ptr<cc::CompositorFrame> compositor_frame =
make_scoped_ptr(new cc::CompositorFrame());
compositor_frame->delegated_frame_data = frame_data.Pass();
+
+ compositor_frame->metadata.latency_info.swap(skipped_latency_info_list_);
+ compositor_frame->metadata.latency_info.insert(
+ compositor_frame->metadata.latency_info.end(),
+ latency_info.begin(),
+ latency_info.end());
+
base::Closure ack_callback;
if (compositor) {
ack_callback = base::Bind(&DelegatedFrameHost::SendDelegatedFrameAck,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698