| Index: skia/ext/bitmap_platform_device_android.cc
|
| ===================================================================
|
| --- skia/ext/bitmap_platform_device_android.cc (revision 156622)
|
| +++ skia/ext/bitmap_platform_device_android.cc (working copy)
|
| @@ -8,6 +8,9 @@
|
|
|
| BitmapPlatformDevice* BitmapPlatformDevice::Create(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()) {
|
|
|