Index: content/browser/renderer_host/render_widget_host_view_win.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc |
index 092ec8b4fe0f3267c9b525492f82d5617a863fab..a27b92319f949a023bdc530c004276ea505bc39e 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_win.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc |
@@ -181,10 +181,7 @@ LRESULT CALLBACK PluginWrapperWindowProc(HWND window, unsigned int message, |
return ::DefWindowProc(window, message, wparam, lparam); |
} |
-void SendToGpuProcessHost(int gpu_host_id, IPC::Message* m) { |
- // TODO(ajwong): Switch back to Passed() when it becomes available again. |
- scoped_ptr<IPC::Message> message(m); |
- |
+void SendToGpuProcessHost(int gpu_host_id, scoped_ptr<IPC::Message> message) { |
GpuProcessHost* gpu_process_host = GpuProcessHost::FromID(gpu_host_id); |
if (!gpu_process_host) |
return; |
@@ -2048,10 +2045,12 @@ void RenderWidgetHostViewWin::AcceleratedSurfaceBuffersSwapped( |
accelerated_surface_->Initialize(); |
} |
+ scoped_ptr<IPC::Message> message( |
+ new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id)); |
base::Closure acknowledge_task = base::Bind( |
SendToGpuProcessHost, |
gpu_host_id, |
- new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id)); |
+ base::Passed(&message)); |
accelerated_surface_->AsyncPresentAndAcknowledge( |
params.size, |