| Index: Source/core/platform/graphics/ImageFrameGenerator.h
|
| diff --git a/Source/core/platform/graphics/ImageFrameGenerator.h b/Source/core/platform/graphics/ImageFrameGenerator.h
|
| index 627229de8a58afeac626baa0b8dc744ecee1dbd6..931fa986f39238312ec3408f335e1556985e46c2 100644
|
| --- a/Source/core/platform/graphics/ImageFrameGenerator.h
|
| +++ b/Source/core/platform/graphics/ImageFrameGenerator.h
|
| @@ -62,6 +62,13 @@ public:
|
|
|
| const ScaledImageFragment* decodeAndScale(const SkISize& scaledSize, size_t index = 0);
|
|
|
| + // Decodes and scales the specified frame indicated by |index|. Dimensions
|
| + // and output format are specified in |info|. Decoded pixels are written
|
| + // into |pixels| with a stride of |rowBytes|.
|
| + //
|
| + // Returns true if decoding was successful.
|
| + bool decodeAndScale(const SkImageInfo&, size_t index, void* pixels, size_t rowBytes);
|
| +
|
| void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
|
|
|
| // Creates a new SharedBuffer containing the data received so far.
|
|
|