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