Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0dfb608af54f0e352c7ba6879c72b1847886f585
      
https://github.com/WebKit/WebKit/commit/0dfb608af54f0e352c7ba6879c72b1847886f585
  Author: Gerald Squelart <[email protected]>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    A LayoutTests/fast/canvas/webgl/colorspaces-test-expected.txt
    A LayoutTests/fast/canvas/webgl/colorspaces-test.html
    A LayoutTests/fast/canvas/webgl/context-lost-restored-p3-expected.txt
    A LayoutTests/fast/canvas/webgl/context-lost-restored-p3.html
    A LayoutTests/fast/canvas/webgl/match-page-color-space-p3-expected.html
    A LayoutTests/fast/canvas/webgl/match-page-color-space-p3.html
    M LayoutTests/platform/gtk/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M LayoutTests/platform/mac/TestExpectations
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.h
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.idl
    M Source/WebCore/inspector/InspectorCanvas.cpp
    M Source/WebCore/inspector/InspectorCanvasCallTracer.h
    M Source/WebCore/platform/graphics/GraphicsContextGL.cpp
    M Source/WebCore/platform/graphics/GraphicsContextGL.h
    M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.h
    M Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm
    M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.messages.in
    M 
Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h
    M Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h
    M 
Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxyFunctionsGenerated.cpp

  Log Message:
  -----------
  drawingBufferColorSpace support in WebGL canvas on macOS
https://bugs.webkit.org/show_bug.cgi?id=247165
<rdar://101663516>

Reviewed by Kimmo Kinnunen.

Add 'drawingBufferColorSpace' attribute in canvas.getContext('webgl' or 
'webgl2').
The default value is 'srgb'.
On macOS, the supported colorspaces are 'srgb' and 'display-p3'. Note that 
currently this only affects how the buffer is interpreted when presented on the 
screen.
On other platforms, the attribute will not even be present.

* Source/WebCore/platform/graphics/GraphicsContextGL.h:

Canonical link: https://commits.webkit.org/256208@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to