Commit 45be21a4 authored by Madeleine Barowsky's avatar Madeleine Barowsky Committed by Commit Bot

Add Blink feature flag for decoding of lossy WebP to YUV

We can significantly speed up WebP rendering and reduce memory footprint
per image by decoding and storing lossy WebP images into their native
YUV format instead of unnecessarily converting to RGB.

This flag will be used to safely hide changes to the image decoding
paths until the feature is completely landed.

See bit.ly/webp-decoding-into-yuv for the design document and
crrev.com/c/1338461 for a working prototype CL in the GPU rasterization case.

Bug: 900264
Change-Id: I611d17199cae4724332d73a5606f20d4eedf9010
Reviewed-on: https://chromium-review.googlesource.com/c/1366858
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614761}
parent 13324ab4
......@@ -146,5 +146,10 @@ const char kMixedContentAutoupgradeModeBlockable[] = "blockable";
const char kMixedContentAutoupgradeModeOptionallyBlockable[] =
"optionally-blockable";
// Decodes lossy WebP images to YUV instead of RGBX and stores in this format
// in the image decode cache. See crbug.com/900264 for details on the feature.
const base::Feature kDecodeLossyWebPImagesToYUV{
"DecodeLossyWebPImagesToYUV", base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace features
} // namespace blink
......@@ -51,6 +51,8 @@ BLINK_COMMON_EXPORT extern const char kMixedContentAutoupgradeModeBlockable[];
BLINK_COMMON_EXPORT extern const char
kMixedContentAutoupgradeModeOptionallyBlockable[];
BLINK_COMMON_EXPORT extern const base::Feature kDecodeLossyWebPImagesToYUV;
} // namespace features
} // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment