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

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

Issue 123563002: Remove gpu side LatencyInfo merging (Closed) Base URL: http://git.chromium.org/chromium/src.git@gpu-per-event-latency-6-small
Patch Set: fix mac_rel compiler error. Move kMaxLatencyInfoNumber to .cc file Created 6 years, 11 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 2f018c178b771d68a9fc31651cb81be8ff07e246..afdc9871971acfa49986a376c94ccda244a35cf1 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1340,16 +1340,11 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped(
params_in_pixel.route_id,
gpu_host_id,
params_in_pixel.mailbox_name);
- // TODO(miletus) : Pass the params_in_pixel.latency_info directly into
- // BuffersSwapped() once GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params
- // is converted to contain std::vector<ui::LatencyInfo>.
- std::vector<ui::LatencyInfo> latency_info;
- latency_info.push_back(params_in_pixel.latency_info);
BuffersSwapped(params_in_pixel.size,
gfx::Rect(params_in_pixel.size),
params_in_pixel.scale_factor,
params_in_pixel.mailbox_name,
- latency_info,
+ params_in_pixel.latency_info,
ack_callback);
}
@@ -1751,16 +1746,11 @@ void RenderWidgetHostViewAura::AcceleratedSurfacePostSubBuffer(
params_in_pixel.route_id,
gpu_host_id,
params_in_pixel.mailbox_name);
- // TODO(miletus) : Pass the params_in_pixel.latency_info directly into
- // BuffersSwapped() once GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params
- // is converted to contain std::vector<ui::LatencyInfo>.
- std::vector<ui::LatencyInfo> latency_info;
- latency_info.push_back(params_in_pixel.latency_info);
BuffersSwapped(params_in_pixel.surface_size,
damage_rect,
params_in_pixel.surface_scale_factor,
params_in_pixel.mailbox_name,
- latency_info,
+ params_in_pixel.latency_info,
ack_callback);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698