summaryrefslogtreecommitdiffstats
path: root/skia/ext/skia_utils_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/skia_utils_mac.h')
-rw-r--r--skia/ext/skia_utils_mac.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/skia/ext/skia_utils_mac.h b/skia/ext/skia_utils_mac.h
index 14cd17f..06cb151 100644
--- a/skia/ext/skia_utils_mac.h
+++ b/skia/ext/skia_utils_mac.h
@@ -57,6 +57,9 @@ SkBitmap CGImageToSkBitmap(CGImageRef image);
#ifdef __OBJC__
// Draws an NSImage with a given size into a SkBitmap.
SkBitmap NSImageToSkBitmap(NSImage* image, NSSize size, bool is_opaque);
+
+// Given an SkBitmap, return an autoreleased NSImage.
+NSImage* SkBitmapToNSImage(const SkBitmap& icon);
#endif
} // namespace gfx