| Index: ui/base/clipboard/clipboard_mac.mm
|
| ===================================================================
|
| --- ui/base/clipboard/clipboard_mac.mm (revision 86628)
|
| +++ ui/base/clipboard/clipboard_mac.mm (working copy)
|
| @@ -253,8 +253,7 @@
|
| int height = [image size].height;
|
|
|
| gfx::CanvasSkia canvas(width, height, false);
|
| - skia::ScopedPlatformPaint scoped_platform_paint(&canvas);
|
| - CGContextRef gc = scoped_platform_paint.GetPlatformSurface();
|
| + CGContextRef gc = canvas.beginPlatformPaint();
|
| NSGraphicsContext* cocoa_gc =
|
| [NSGraphicsContext graphicsContextWithGraphicsPort:gc flipped:NO];
|
| [NSGraphicsContext setCurrentContext:cocoa_gc];
|
| @@ -263,6 +262,7 @@
|
| operation:NSCompositeCopy
|
| fraction:1.0];
|
| [NSGraphicsContext restoreGraphicsState];
|
| + canvas.endPlatformPaint();
|
| return canvas.ExtractBitmap();
|
| }
|
| return SkBitmap();
|
|
|