Index: content/browser/renderer_host/render_widget_host_view_gtk.cc |
=================================================================== |
--- content/browser/renderer_host/render_widget_host_view_gtk.cc (revision 161107) |
+++ content/browser/renderer_host/render_widget_host_view_gtk.cc (working copy) |
@@ -1038,7 +1038,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)); |
const gfx::Rect bounds = GetViewBounds(); |
@@ -1051,10 +1051,10 @@ |
if (!image.get()) |
return; |
- if (!output->initialize(src_subrect.width(), src_subrect.height(), true)) |
+ if (!output->Allocate(src_subrect.width(), src_subrect.height(), true)) |
return; |
- const SkBitmap& bitmap = output->getTopDevice()->accessBitmap(true); |
+ const SkBitmap& bitmap = output->GetBitmap(); |
const size_t bitmap_size = bitmap.getSize(); |
DCHECK_EQ(bitmap_size, |
static_cast<size_t>(image->height * image->bytes_per_line)); |