Contact [email protected]

Specification
This is part of the WebGL specification. In particular:

   - 5.14.1 context attributes
   <https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.1> discusses
   drawingBufferColorSpace and unpackColorSpace
   - 5.14.8 texture objects
   <https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.8> discusses
   unpackColorSpace

This spec was originally developed in the W3C's ColorWeb community group
<https://www.w3.org/community/colorweb/> along with the 2D canvas color
management proposal at

https://github.com/WICG/canvas-color-space/blob/main/CanvasColorSpaceProposal.md
It was broken out and iterated upon separately in Khronos (in particular by
Mozilla and Chrome representatives). The final changes to the Khronos WebGL
spec are in
https://github.com/KhronosGroup/WebGL/pull/3292

*Summary*

Implementation of WebGL color management API WebGL allows specification of
- the color space that its drawing buffer is - the color space that content
should be converted to when importing as a texture This feature is to
update our implementation to include this functionality. Prior to this
feature, both of these defaulted to sRGB. Now they can also use
"display-p3".

Blink componentBlink>WebGL
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EWebGL>

Search tagscanvas <https://chromestatus.com/features#tags:canvas>, webgl
<https://chromestatus.com/features#tags:webgl>, display-p3
<https://chromestatus.com/features#tags:display-p3>, color space
<https://chromestatus.com/features#tags:color%20space>

TAG review status
N/A. Canvas 2D color managment API already TAG reviewed at
https://github.com/w3ctag/design-reviews/issues/646
This specification change was developed in Khronos and followed the
processes there.

Risks


Interoperability and Compatibility



Gecko: Positive Developed in close collaboration with Mozilla, spec changes
reviewed by Mozilla.

WebKit: Positive Discussed in ColorWeb CG with WebKit representatives

Web developers: Strongly positive

Other signals:

Privacy: N/A
This exposes no information about the user's system to the web. This API
can be used on systems that do not support wide color gamut (the
out-of-gamut colors are clipped, as they are for 2D canvas, images, and
video).

Security: N/A

This allows a WebGL canvas to specify its color space. This functionality
is already present for 2D canvas, images, and video content.



Debuggability

Debugging is currently limited to sRGB colors. This limits visibility into
wide color gamut image, video, and 2D canvas. This limitation is being
looked at in the context of adding CSS color level 4 support.


Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?No, this is tested instead by WebGL conformance tests.

Flag nameWebGLColorManagement

Requires code in //chrome?No

Tracking bughttps://crbug.com/1208480

Sample linkshttps://ccameron-chromium.github.io/webgl-examples/p3.html

Estimated milestones

No milestones specified

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/4814886323355648

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGnfxj_6radHqyNz4Sxa3SxZET-93xJCdMdZe6WptHxOLyhC3A%40mail.gmail.com.

Reply via email to