summaryrefslogtreecommitdiffstats
path: root/ui/base/clipboard/clipboard_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/clipboard/clipboard_linux.cc')
-rw-r--r--ui/base/clipboard/clipboard_linux.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/clipboard/clipboard_linux.cc b/ui/base/clipboard/clipboard_linux.cc
index 883dcf5..13cc759 100644
--- a/ui/base/clipboard/clipboard_linux.cc
+++ b/ui/base/clipboard/clipboard_linux.cc
@@ -388,10 +388,10 @@ SkBitmap Clipboard::ReadImage(Buffer buffer) const {
gfx::CanvasSkia canvas(gdk_pixbuf_get_width(pixbuf.get()),
gdk_pixbuf_get_height(pixbuf.get()),
false);
- cairo_t* context = canvas.beginPlatformPaint();
+ skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
+ cairo_t* context = scoped_platform_paint.GetPlatformSurface();
gdk_cairo_set_source_pixbuf(context, pixbuf.get(), 0.0, 0.0);
cairo_paint(context);
- canvas.endPlatformPaint();
return canvas.ExtractBitmap();
}