| Index: content/browser/renderer_host/render_widget_host_view_mac.mm
|
| ===================================================================
|
| --- content/browser/renderer_host/render_widget_host_view_mac.mm (revision 160846)
|
| +++ content/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
|
| @@ -833,7 +833,7 @@
|
| const gfx::Rect& src_subrect,
|
| const gfx::Size& dst_size,
|
| const base::Callback<void(bool)>& callback,
|
| - skia::PlatformCanvas* output) {
|
| + skia::PlatformBitmap* output) {
|
| base::ScopedClosureRunner scoped_callback_runner(base::Bind(callback, false));
|
| if (!compositing_iosurface_.get() ||
|
| !compositing_iosurface_->HasIOSurface())
|
| @@ -841,7 +841,7 @@
|
|
|
| float scale = ScaleFactor(cocoa_view_);
|
| gfx::Size dst_pixel_size = dst_size.Scale(scale);
|
| - if (!output->initialize(
|
| + if (!output->Allocate(
|
| dst_pixel_size.width(), dst_pixel_size.height(), true))
|
| return;
|
| scoped_callback_runner.Release();
|
| @@ -856,7 +856,7 @@
|
| compositing_iosurface_->CopyTo(
|
| src_pixel_gl_subrect,
|
| dst_pixel_size,
|
| - output->getTopDevice()->accessBitmap(true).getPixels(),
|
| + output->GetBitmap().getPixels(),
|
| callback);
|
| }
|
|
|
|
|