From 3739e58b0a7fc9462bc4363fef0608a34dcf5346 Mon Sep 17 00:00:00 2001 From: "mazda@chromium.org" Date: Fri, 4 May 2012 10:05:08 +0000 Subject: Use the asynchronous version CopyFromBackingStore in AeroPeekManager I plan to consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. This is a preparation for that work. AeroPeekManager is not used by default. It is used only when Chrome is launched with "--enable-aero-peek-tabs" option on Windows 7 with Aero enabled in non-application mode. This change uses WaitableEvent::Wait to adapt AsyncCopyFromBackingStore for the synchronous usage. I'd like to add suppression for the thread restriction for now in order to make the consolidation work progress. BUG=120003 TEST=Manual Review URL: http://codereview.chromium.org/10303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135314 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/renderer_host/render_widget_host_view_win.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'content/browser') 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 fcfeac8..e4796c8 100644 --- a/content/browser/renderer_host/render_widget_host_view_win.cc +++ b/content/browser/renderer_host/render_widget_host_view_win.cc @@ -926,9 +926,7 @@ void RenderWidgetHostViewWin::AsyncCopyFromCompositingSurface( const gfx::Size& size, skia::PlatformCanvas* output, base::Callback callback) { - // TODO(mazda): Implement this. - NOTIMPLEMENTED(); - callback.Run(false); + callback.Run(CopyFromCompositingSurface(size, output)); } void RenderWidgetHostViewWin::SetBackground(const SkBitmap& background) { -- cgit v1.1