Fixing ResourceFormat for WebGPU
ImageBitmapRenderingContext can be constructed with GPU composited
content that has BGR color format, instead of RGB. Currently, the code
assumes that all the content is RGB.
WebGL and Canvas2D handle this discordancies internally, but WebGPU
does not have those implementations, so just adding this in
Image_layer_bridge to properly handle BGR and RGB formats.
Bug: 1190990, 1191081
Change-Id: I363e9d637005afb507f245d64e2e1f81b42a5ffa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2778696
Reviewed-by: vmpstr <vmpstr@chromium.org>
Reviewed-by: Justin Novosad <junov@chromium.org>
Commit-Queue: Juanmi Huertas <juanmihd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#874355}
GitOrigin-RevId: 20e4cbc01e2787bf5aa7072879069dba5750ed58
1 file changed