Index: skia/ext/bitmap_platform_device.h |
diff --git a/skia/ext/bitmap_platform_device.h b/skia/ext/bitmap_platform_device.h |
index 11acd9550ee9841a81a15919c02d49df82d33169..1ca5f7e128a393024cc50b2472e12d7ba83f9e65 100644 |
--- a/skia/ext/bitmap_platform_device.h |
+++ b/skia/ext/bitmap_platform_device.h |
@@ -20,19 +20,4 @@ |
#include "skia/ext/bitmap_platform_device_skia.h" |
#endif |
-namespace skia { |
- // Returns true if it is unsafe to attempt to allocate an offscreen buffer |
- // given these dimensions. |
- inline bool RasterDeviceTooBigToAllocate(int width, int height) { |
- |
-#ifndef SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX |
-#define SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX (2 * 256 * 1024 * 1024) |
-#endif |
- |
- int bytesPerPixel = 4; |
- int64_t bytes = (int64_t)width * height * bytesPerPixel; |
- return bytes > SKIA_EXT_RASTER_DEVICE_ALLOCATION_MAX; |
- } |
-} |
- |
#endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_H_ |