Files
Christopher Cameron e8a995668c Bug 2069298 [wpt PR 62379] - WebGL: Add drawingBufferToneMapping interface, a=testonly
Automatic update from web-platform-tests
WebGL: Add drawingBufferToneMapping interface

Implement the WebGL drawingBufferToneMapping interface, gated on the
experimental WebGLToneMapping runtime feature flag.

The feature is described at:
https://github.com/w3c-cg/ColorWeb-CG/blob/main/webgl-drawing-buffer-tone-map.md

It is a part of the larger HDR proposal at:
https://github.com/w3c-cg/ColorWeb-CG/blob/main/hdr-big-picture.md

The function is a combined getter-setter (takes an optional
CanvasToneMapping argument, returns the state).

The function is expected to destroy the color buffer's contents. This
may not be strictly necessary, but mirrors the capabilities in WebGPU,
and the behavior of setting the drawingBufferColorSpace attribute. Add a
test for this (mirroring the color space test).

Add WPT test external/wpt/webgl/drawingBufferToneMapping.html and update
webexposed global interface expectations.

TAG=agy
CONV=9f2c857b-3ae8-4048-ab49-db1109f50272

Bug: 555806830
Change-Id: If5908fcb910ee110a949b47663d905e526ca53e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8330328
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Commit-Queue: ccameron chromium <ccameron@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1690875}

--

wpt-commits: 341432dac3fa5d5edc9fef9c7977bf51cd325078
wpt-pr: 62379
2026-09-10 11:29:42 +00:00
..