gpu: Add flag to enable JPEG YUV decoding.
Similar to the work done for WebP YUV decoding, we would like to
implement direct decoding of JPEG 4:2:0 images to YUV rather than RGB
for non progressive JPEGs.
BUG: 919627
Change-Id: Ie6522e51204a0013b1db7b0635bed5cdb847baa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1768817
Commit-Queue: Sasha McIntosh <[email protected]>
Reviewed-by: Kentaro Hara <[email protected]>
Reviewed-by: Daniele Castagna <[email protected]>
Cr-Commit-Position: refs/heads/master@{#692845}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 23100fe..1a7aad72 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -4421,6 +4421,11 @@
FEATURE_VALUE_TYPE(
autofill::features::kAutofillUpdatedCardUnmaskPromptUi)},
+ {"decode-jpeg-images-to-yuv",
+ flag_descriptions::kDecodeJpeg420ImagesToYUVName,
+ flag_descriptions::kDecodeJpeg420ImagesToYUVDescription, kOsAll,
+ FEATURE_VALUE_TYPE(blink::features::kDecodeJpeg420ImagesToYUV)},
+
{"decode-webp-images-to-yuv",
flag_descriptions::kDecodeLossyWebPImagesToYUVName,
flag_descriptions::kDecodeLossyWebPImagesToYUVDescription, kOsAll,