summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/skia_utils_mac.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index 5da38df..07d9f0c 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -84,7 +84,8 @@ CGColorRef SkColorToCGColorRef(SkColor color) {
}
SkBitmap CGImageToSkBitmap(CGImageRef image) {
- DCHECK(image != NULL);
+ if (!image)
+ return SkBitmap();
int width = CGImageGetWidth(image);
int height = CGImageGetHeight(image);