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 c375154a775c79addd934041d5485957659144b8..f08543709e5d8531def7bc8feb277fd6db2cd31e 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_win.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc |
@@ -1197,21 +1197,29 @@ BackingStore* RenderWidgetHostViewWin::AllocBackingStore( |
} |
void RenderWidgetHostViewWin::CopyFromCompositingSurface( |
- const gfx::Size& size, |
+ const gfx::Rect& src_subrect, |
+ const gfx::Size& dst_size, |
const base::Callback<void(bool)>& callback, |
skia::PlatformCanvas* output) { |
base::ScopedClosureRunner scoped_callback_runner(base::Bind(callback, false)); |
+ // TODO(mazda): Support copying a partial rectangle from the compositing |
+ // surface with |src_subrect| (http://crbug.com/118571). |
+ if (!src_subrect.IsEmpty()) { |
+ NOTIMPLEMENTED(); |
+ return; |
+ } |
+ |
if (!accelerated_surface_.get()) |
return; |
- if (size.IsEmpty()) |
+ if (dst_size.IsEmpty()) |
return; |
- if (!output->initialize(size.width(), size.height(), true)) |
+ if (!output->initialize(dst_size.width(), dst_size.height(), true)) |
return; |
const bool result = accelerated_surface_->CopyTo( |
- size, output->getTopDevice()->accessBitmap(true).getPixels()); |
+ dst_size, output->getTopDevice()->accessBitmap(true).getPixels()); |
scoped_callback_runner.Release(); |
callback.Run(result); |
} |