Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: skia/ext/bitmap_platform_device_mac.cc

Issue 6732027: Replace include with forward declarations.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/bitmap_platform_device_data.h ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « skia/ext/bitmap_platform_device_data.h ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698