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

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

Issue 2721763002: SetPreviousFrameSurface should copy latency info to the new surface (Closed)
Patch Set: c Created 3 years, 10 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
« cc/surfaces/surface.cc ('K') | « 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: content/browser/renderer_host/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index ffd64e3ec8a2824500e57437ad939966c5c3e87a..a107d3ebea40b4736556d3ec3cb62a4c5383e47f 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -457,18 +457,10 @@ void DelegatedFrameHost::SwapDelegatedFrame(uint32_t compositor_frame_sink_id,
allocated_new_local_surface_id = true;
}
- gfx::Size desired_size = client_->DelegatedFrameHostDesiredSizeInDIP();
- if (desired_size != frame_size_in_dip && !desired_size.IsEmpty()) {
- skipped_latency_info_list_.insert(skipped_latency_info_list_.end(),
- frame.metadata.latency_info.begin(),
- frame.metadata.latency_info.end());
- frame.metadata.latency_info.clear();
tdresser 2017/02/28 20:25:45 I have context on LatencyInfo, but not much contex
- } else {
- frame.metadata.latency_info.insert(frame.metadata.latency_info.end(),
- skipped_latency_info_list_.begin(),
- skipped_latency_info_list_.end());
- skipped_latency_info_list_.clear();
- }
+ frame.metadata.latency_info.insert(frame.metadata.latency_info.end(),
+ skipped_latency_info_list_.begin(),
+ skipped_latency_info_list_.end());
+ skipped_latency_info_list_.clear();
support_->SubmitCompositorFrame(local_surface_id_, std::move(frame));
« cc/surfaces/surface.cc ('K') | « cc/surfaces/surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698