| Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| index 3507ba973494c3a0b1c81c87265749efa17ac94b..49d90d8ef95510603981341270a369ec35db0fd7 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h
|
| @@ -293,6 +293,14 @@ public:
|
| virtual bool decodeToYUV() { return false; }
|
| virtual void setImagePlanes(PassOwnPtr<ImagePlanes>) { }
|
|
|
| + virtual void getAvailableDecodeAndScale(ImageFrame::ColorType* outType, float* scale, float* lowerScale)
|
| + {
|
| + defaultDecodeAndScale(outType, scale, lowerScale);
|
| + }
|
| + virtual bool activateDecodeAndScale(ImageFrame::ColorType outColor, size_t maxDecodedBytes = noDecodedImageByteLimit) { return false; }
|
| + virtual void disableDecodeAndScale() { }
|
| + static void defaultDecodeAndScale(ImageFrame::ColorType* outType, float* scale, float* lowerScale);
|
| +
|
| protected:
|
| // Calculates the most recent frame whose image data may be needed in
|
| // order to decode frame |frameIndex|, based on frame disposal methods
|
|
|