| Index: src/images/SkDecodingImageGenerator.h
|
| diff --git a/src/images/SkDecodingImageGenerator.h b/src/images/SkDecodingImageGenerator.h
|
| index 682aeb619cee14c6d3593e6cde664a93ea79592b..49f1295bf3538cdd69451c8f86cb383eea44596a 100644
|
| --- a/src/images/SkDecodingImageGenerator.h
|
| +++ b/src/images/SkDecodingImageGenerator.h
|
| @@ -8,6 +8,7 @@
|
| #ifndef SkDecodingImageGenerator_DEFINED
|
| #define SkDecodingImageGenerator_DEFINED
|
|
|
| +#include "SkDiscardableMemory.h"
|
| #include "SkImageGenerator.h"
|
|
|
| class SkBitmap;
|
| @@ -36,8 +37,21 @@ public:
|
| /**
|
| * Install the SkData into the destination bitmap, using a new
|
| * SkDiscardablePixelRef and a new SkDecodingImageGenerator.
|
| + *
|
| + * @param data Contains the encoded image data that will be used
|
| + * by the SkDecodingImageGenerator. Will be ref()ed.
|
| + *
|
| + * @param destination Upon success, this bitmap will be
|
| + * configured and have a pixelref installed.
|
| + *
|
| + * @param factory If not NULL, this object will be used as a
|
| + * source of discardable memory when decoding. If NULL, then
|
| + * SkDiscardableMemory::Create() will be called.
|
| + *
|
| + * @return true iff successful.
|
| */
|
| - static bool Install(SkData* data, SkBitmap* destination);
|
| + static bool Install(SkData* data, SkBitmap* destination,
|
| + SkDiscardableMemory::Factory* factory = NULL);
|
|
|
| private:
|
| SkData* fData;
|
|
|