Index: skia/ext/bitmap_platform_device_mac.cc |
=================================================================== |
--- skia/ext/bitmap_platform_device_mac.cc (revision 79299) |
+++ skia/ext/bitmap_platform_device_mac.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "skia/ext/bitmap_platform_device_mac.h" |
+#import <ApplicationServices/ApplicationServices.h> |
#include <time.h> |
#include "base/mac/mac_util.h" |
@@ -82,6 +83,12 @@ |
CGContextRelease(bitmap_context_); |
} |
+void BitmapPlatformDevice::BitmapPlatformDeviceData::ReleaseBitmapContext() { |
+ SkASSERT(bitmap_context_); |
+ CGContextRelease(bitmap_context_); |
+ bitmap_context_ = NULL; |
+} |
+ |
void BitmapPlatformDevice::BitmapPlatformDeviceData::SetMatrixClip( |
const SkMatrix& transform, |
const SkRegion& region) { |