blink: Fix JPEG yuv decoding
Note that JPEG YUV decoding is still only enabled for testing. In a follow-up change, |allow_decode_to_yuv_| will be set by RuntimeEnabledFeatures::DecodeJpeg420ImagesToYUVEnabled which will require rebasing some existing web tests. * Set pixmap width to the stride width (instead of image width) * Decrease unnecessary repetitive calls to JpegImageDecoder::DecodeSize (called by PaintImage::IsYuv) by providing plane indices when available. Bug: 919627 Change-Id: Ie3314b5cda9f075c62f7595ff22c41f4dad1a74e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1783206 Commit-Queue: Sasha McIntosh <sashamcintosh@chromium.org> Reviewed-by:Eric Karl <ericrk@chromium.org> Reviewed-by:
Stephen Chenney <schenney@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#708341}
Showing
Please register or sign in to comment