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

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

Issue 8931008: Revert of "Redo r113722 - Add Pass(), which implements move semantics, to scoped_ptr, scoped_ar..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years 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
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3e8e077f8674ee2e8cd5145e541633b1139a3746..ba7ac0f1bae1ec3898e2babb7eebeedac509dacd 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -182,7 +182,10 @@ LRESULT CALLBACK PluginWrapperWindowProc(HWND window, unsigned int message,
return ::DefWindowProc(window, message, wparam, lparam);
}
-void SendToGpuProcessHost(int gpu_host_id, scoped_ptr<IPC::Message> message) {
+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);
+
GpuProcessHost* gpu_process_host = GpuProcessHost::FromID(gpu_host_id);
if (!gpu_process_host)
return;
@@ -2048,12 +2051,10 @@ 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,
- base::Passed(&message));
+ new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id));
accelerated_surface_->AsyncPresentAndAcknowledge(
params.size,
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698