Index: ui/base/clipboard/clipboard_mac.mm |
=================================================================== |
--- ui/base/clipboard/clipboard_mac.mm (revision 95630) |
+++ ui/base/clipboard/clipboard_mac.mm (working copy) |
@@ -16,7 +16,6 @@ |
#import "third_party/mozilla/NSPasteboard+Utils.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "ui/gfx/canvas_skia.h" |
-#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
#include "ui/gfx/size.h" |
namespace ui { |
@@ -249,7 +248,6 @@ |
scoped_nsobject<NSImage> image( |
[[NSImage alloc] initWithPasteboard:GetPasteboard()]); |
if (image.get()) { |
- gfx::ScopedNSGraphicsContextSaveGState scoped_state; |
[image setFlipped:YES]; |
int width = [image size].width; |
int height = [image size].height; |
@@ -264,6 +262,7 @@ |
fromRect:NSZeroRect |
operation:NSCompositeCopy |
fraction:1.0]; |
+ [NSGraphicsContext restoreGraphicsState]; |
return canvas.ExtractBitmap(); |
} |
return SkBitmap(); |