summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu
diff options
context:
space:
mode:
authorccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-27 05:48:33 +0000
committerccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-27 05:48:33 +0000
commiteca216c35b2fdd263c58accef6e68c27f7fc5a22 (patch)
tree8db771269c7d633f44f052c42f74fd553b3af4bb /content/browser/gpu
parentb1e7562d49aef3d36df8a19ba796c059477b05af (diff)
downloadchromium_src-eca216c35b2fdd263c58accef6e68c27f7fc5a22.zip
chromium_src-eca216c35b2fdd263c58accef6e68c27f7fc5a22.tar.gz
chromium_src-eca216c35b2fdd263c58accef6e68c27f7fc5a22.tar.bz2
Part 3/3 (RWH/IOSurface) of adding with device scale factor to transport surfaces
Pass the scale factor through the image transport surface to the IOSurface creation. Change ViewHostMsg_CompositorSurfaceBuffersSwapped to use a params structure, because there is a limit of 5 IPC arguments. BUG=132714 Review URL: https://chromiumcodereview.appspot.com/15689003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/gpu')
-rw-r--r--content/browser/gpu/gpu_process_host.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 0949eda..7de624c 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -930,13 +930,17 @@ void GpuProcessHost::OnAcceleratedSurfaceBuffersSwapped(
// will forward to the RenderWidgetHostView via RenderProcessHostImpl and
// RenderWidgetHostImpl.
scoped_completion_runner.Release();
+
+ ViewHostMsg_CompositorSurfaceBuffersSwapped_Params view_params;
+ view_params.surface_id = params.surface_id;
+ view_params.surface_handle = params.surface_handle;
+ view_params.route_id = params.route_id;
+ view_params.size = params.size;
+ view_params.scale_factor = params.scale_factor;
+ view_params.gpu_process_host_id = host_id_;
helper->DidReceiveBackingStoreMsg(ViewHostMsg_CompositorSurfaceBuffersSwapped(
render_widget_id,
- params.surface_id,
- params.surface_handle,
- params.route_id,
- params.size,
- host_id_));
+ view_params));
}
#endif // OS_MACOSX