Make BRD take advantage of zero initialized memory
This is the third step in a three part change:
(1) Skia: Add SkBRDAllocator.
(2) Android: Make JavaPixelAllocator and RecyclingClippingPixelAllocator
implement SkBRDAllocator.
(3) Skia: Change SkBitmapRegionDecoder to use SkBRDAllocator and take
advantage of zero allocated memory when possible.
BUG=skia:
Review URL: https://codereview.chromium.org/1420053010
diff --git a/tools/android/SkBitmapRegionDecoder.h b/tools/android/SkBitmapRegionDecoder.h
index 294adc3..575ad9d 100644
--- a/tools/android/SkBitmapRegionDecoder.h
+++ b/tools/android/SkBitmapRegionDecoder.h
@@ -9,6 +9,7 @@
#define SkBitmapRegionDecoder_DEFINED
#include "SkBitmap.h"
+#include "SkBRDAllocator.h"
#include "SkEncodedFormat.h"
#include "SkStream.h"
@@ -58,7 +59,7 @@
* alpha type to use.
*
*/
- virtual bool decodeRegion(SkBitmap* bitmap, SkBitmap::Allocator* allocator,
+ virtual bool decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocator,
const SkIRect& desiredSubset, int sampleSize,
SkColorType colorType, bool requireUnpremul) = 0;
/*