Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

Issue 1403393004: JPEGImageDecoder RGB565 and downsample support and related Skia imagegenerator changes Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Continued decoding fix and downscale combined Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698