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

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..131c417a4008700988e5e77e61a27e28832175d4 100644
--- a/content/browser/compositor/delegated_frame_host.cc
+++ b/content/browser/compositor/delegated_frame_host.cc
@@ -391,6 +391,16 @@ void DelegatedFrameHost::SwapDelegatedFrame(
scoped_ptr<cc::CompositorFrame> compositor_frame =
make_scoped_ptr(new cc::CompositorFrame());
compositor_frame->delegated_frame_data = frame_data.Pass();
+
+ std::vector<ui::LatencyInfo>::const_iterator it;
+ for (it = latency_info.begin(); it != latency_info.end(); ++it)
+ compositor_frame->metadata.latency_info.push_back(*it);
danakj 2014/09/23 19:48:27 can you use compositor_frame->metadata.latency_inf
jbauman 2014/09/23 19:57:24 Done.
+ for (it = skipped_latency_info_list_.begin();
+ it != skipped_latency_info_list_.end();
+ ++it)
+ compositor_frame->metadata.latency_info.push_back(*it);
danakj 2014/09/23 19:48:27 same here?
jbauman 2014/09/23 19:57:24 Moved above the other, and used swap instead.
+ skipped_latency_info_list_.clear();
+
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