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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
index d21f7e7cb3037ff10c86b7122f895a44f9418d90..e0f577d641bb579d6b4b11502fe3d1d55381b0d5 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
@@ -261,4 +261,14 @@ size_t ImagePlanes::rowBytes(int i) const
return m_rowBytes[i];
}
+void ImageDecoder::defaultDecodeAndScale(ImageFrame::ColorType* outType, float* scale, float* lowerScale)
+{
+ if (outType)
+ *outType = ImageFrame::RGBA8888;
+ if (scale)
+ *scale = 1.0f;
+ if (lowerScale)
+ *lowerScale = 0;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698