summaryrefslogtreecommitdiffstats
path: root/skia/ext/skia_utils_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/skia_utils_mac.mm')
-rw-r--r--skia/ext/skia_utils_mac.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 0a08c75..3568d88 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -181,4 +181,9 @@ NSImage* SkBitmapToNSImage(const SkBitmap& skiaBitmap) {
return image;
}
+SkBitmap AppplicationIconAtSize(int size) {
+ NSImage* image = [NSImage imageNamed:@"NSApplicationIcon"];
+ return NSImageToSkBitmap(image, NSMakeSize(size, size), /* is_opaque=*/true);
+}
+
} // namespace gfx