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

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: Add missed lines 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;
Chris Evans 2013/05/22 22:30:30 This new parameter looks to come from the untruste
ccameron 2013/05/23 00:19:59 We scale gpu_params.size by 1/scale_factor, which
view_->AcceleratedSurfaceBuffersSwapped(gpu_params,
- gpu_process_host_id);
+ params.gpu_process_host_id);
}
bool RenderWidgetHostImpl::OnSwapCompositorFrame(
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('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