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

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

Issue 15689003: Part 3/3 (RWH/IOSurface) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 81833d15ce6a97412e9f90d9fa56f632504fb814..73652f023e27f3afed577d177ab2df14383d8a33 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1647,28 +1647,25 @@ void RenderWidgetHostImpl::OnPaintAtSizeAck(int tag, const gfx::Size& size) {
}
void RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped(
- int32 surface_id,
- uint64 surface_handle,
- int32 route_id,
- const gfx::Size& size,
- int32 gpu_process_host_id) {
+ const ViewHostMsg_CompositorSurfaceBuffersSwapped_Params& params) {
TRACE_EVENT0("renderer_host",
"RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped");
if (!view_) {
AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
ack_params.sync_point = 0;
- RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
- gpu_process_host_id,
+ RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
+ params.gpu_process_host_id,
ack_params);
return;
}
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params;
- gpu_params.surface_id = surface_id;
- gpu_params.surface_handle = surface_handle;
- gpu_params.route_id = route_id;
- gpu_params.size = size;
+ gpu_params.surface_id = params.surface_id;
+ gpu_params.surface_handle = params.surface_handle;
+ gpu_params.route_id = params.route_id;
+ gpu_params.size = params.size;
+ gpu_params.scale_factor = params.scale_factor;
view_->AcceleratedSurfaceBuffersSwapped(gpu_params,
- gpu_process_host_id);
+ params.gpu_process_host_id);
}
bool RenderWidgetHostImpl::OnSwapCompositorFrame(

Powered by Google App Engine
This is Rietveld 408576698