diff options
Diffstat (limited to 'skia/ext/skia_utils_mac.mm')
-rw-r--r-- | skia/ext/skia_utils_mac.mm | 5 |
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 |