Index: skia/ext/bitmap_platform_device_mac.cc |
=================================================================== |
--- skia/ext/bitmap_platform_device_mac.cc (revision 156622) |
+++ skia/ext/bitmap_platform_device_mac.cc (working copy) |
@@ -114,6 +114,9 @@ |
int width, |
int height, |
bool is_opaque) { |
+ if (RasterDeviceTooBigToAllocate(width, height)) |
+ return NULL; |
+ |
SkBitmap bitmap; |
bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height); |
if (bitmap.allocPixels() != true) |