| Index: ui/base/clipboard/clipboard_linux.cc
|
| diff --git a/ui/base/clipboard/clipboard_linux.cc b/ui/base/clipboard/clipboard_linux.cc
|
| index 718fed5b4c73321147490273f3bf38bb08ef5337..ad089ad7eed5aad322b881e499546062c38a36c8 100644
|
| --- a/ui/base/clipboard/clipboard_linux.cc
|
| +++ b/ui/base/clipboard/clipboard_linux.cc
|
| @@ -388,10 +388,12 @@ SkBitmap Clipboard::ReadImage(Buffer buffer) const {
|
| gfx::CanvasSkia canvas(gdk_pixbuf_get_width(pixbuf.get()),
|
| gdk_pixbuf_get_height(pixbuf.get()),
|
| false);
|
| - 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);
|
| + {
|
| + 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);
|
| + }
|
| return canvas.ExtractBitmap();
|
| }
|
|
|
|
|