summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host_view_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_view_mac.mm')
-rw-r--r--content/browser/renderer_host/render_widget_host_view_mac.mm18
1 files changed, 10 insertions, 8 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 251152d..91045d4 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -863,26 +863,28 @@ void RenderWidgetHostViewMac::AcceleratedSurfaceSetTransportDIB(
}
void RenderWidgetHostViewMac::AcceleratedSurfaceBuffersSwapped(
- const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
+ gfx::PluginWindowHandle window,
+ uint64 surface_id,
+ int renderer_id,
+ int32 route_id,
int gpu_host_id) {
TRACE_EVENT0("browser",
"RenderWidgetHostViewMac::AcceleratedSurfaceBuffersSwapped");
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- AcceleratedPluginView* view = ViewForPluginWindowHandle(params.window);
+ AcceleratedPluginView* view = ViewForPluginWindowHandle(window);
DCHECK(view);
if (view) {
- plugin_container_manager_.SetSurfaceWasPaintedTo(params.window,
- params.surface_id);
+ plugin_container_manager_.SetSurfaceWasPaintedTo(window, surface_id);
// The surface is hidden until its first paint, to not show gargabe.
- if (plugin_container_manager_.SurfaceShouldBeVisible(params.window))
+ if (plugin_container_manager_.SurfaceShouldBeVisible(window))
[view setHidden:NO];
[view drawView];
}
- if (params.renderer_id != 0 || params.route_id != 0) {
- AcknowledgeSwapBuffers(params.renderer_id,
- params.route_id,
+ if (renderer_id != 0 || route_id != 0) {
+ AcknowledgeSwapBuffers(renderer_id,
+ route_id,
gpu_host_id);
}
}