| Index: src/images/SkDecodingImageGenerator.cpp
|
| diff --git a/src/images/SkDecodingImageGenerator.cpp b/src/images/SkDecodingImageGenerator.cpp
|
| index 65fa6fd5612abfec9f803943a7fe1e4ab0540c18..c9f29c6fe116f21e260024175c9454737ad4b01e 100644
|
| --- a/src/images/SkDecodingImageGenerator.cpp
|
| +++ b/src/images/SkDecodingImageGenerator.cpp
|
| @@ -6,8 +6,6 @@
|
| */
|
|
|
| #include "SkDecodingImageGenerator.h"
|
| -
|
| -#include "SkBitmapFactory.h"
|
| #include "SkData.h"
|
| #include "SkDiscardablePixelRef.h"
|
| #include "SkImageDecoder.h"
|
| @@ -38,15 +36,16 @@ bool SkDecodingImageGenerator::getPixels(const SkImageInfo& info,
|
| void* pixels,
|
| size_t rowBytes) {
|
| SkASSERT(pixels != NULL);
|
| - SkBitmapFactory::Target target = {pixels, rowBytes};
|
| + SkImageDecoder::Target target = {pixels, rowBytes};
|
| SkImageInfo tmpInfo = info;
|
| return SkImageDecoder::DecodeMemoryToTarget(fData->data(),
|
| fData->size(),
|
| &tmpInfo, &target);
|
| }
|
| -bool SkDecodingImageGenerator::Install(SkData* data, SkBitmap* dst) {
|
| +bool SkDecodingImageGenerator::Install(SkData* data, SkBitmap* dst,
|
| + SkDiscardableMemory::Factory* factory) {
|
| SkASSERT(data != NULL);
|
| SkASSERT(dst != NULL);
|
| SkImageGenerator* gen(SkNEW_ARGS(SkDecodingImageGenerator, (data)));
|
| - return SkDiscardablePixelRef::Install(gen, dst);
|
| + return SkDiscardablePixelRef::Install(gen, dst, factory);
|
| }
|
|
|