[webkit-changes] [WebKit/WebKit] e66763: Implement new WebGL extension drafts

Alexey Knyazev noreply at github.com
Tue Aug 8 10:13:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e66763b90baef09bc9e82c9faa9728e64a260211
      https://github.com/WebKit/WebKit/commit/e66763b90baef09bc9e82c9faa9728e64a260211
  Author: Alexey Knyazev <3479527+lexaknyazev at users.noreply.github.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/platform/ios-simulator/webgl/webgl-draft-extensions-flag-default-expected.txt
    M LayoutTests/platform/ios-simulator/webgl/webgl-draft-extensions-flag-on-expected.txt
    M LayoutTests/webgl/resources/webgl-draft-extensions-flag.js
    M LayoutTests/webgl/webgl-draft-extensions-flag-default-expected.txt
    M LayoutTests/webgl/webgl-draft-extensions-flag-off-expected.txt
    M LayoutTests/webgl/webgl-draft-extensions-flag-on-expected.txt
    M Source/WebCore/CMakeLists.txt
    M Source/WebCore/DerivedSources-input.xcfilelist
    M Source/WebCore/DerivedSources-output.xcfilelist
    M Source/WebCore/DerivedSources.make
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/JSDOMConvertWebGL.cpp
    A Source/WebCore/html/canvas/EXTClipControl.cpp
    A Source/WebCore/html/canvas/EXTClipControl.h
    A Source/WebCore/html/canvas/EXTClipControl.idl
    A Source/WebCore/html/canvas/EXTConservativeDepth.cpp
    A Source/WebCore/html/canvas/EXTConservativeDepth.h
    A Source/WebCore/html/canvas/EXTConservativeDepth.idl
    A Source/WebCore/html/canvas/EXTDepthClamp.cpp
    A Source/WebCore/html/canvas/EXTDepthClamp.h
    A Source/WebCore/html/canvas/EXTDepthClamp.idl
    A Source/WebCore/html/canvas/EXTRenderSnorm.cpp
    A Source/WebCore/html/canvas/EXTRenderSnorm.h
    A Source/WebCore/html/canvas/EXTRenderSnorm.idl
    A Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.cpp
    A Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.h
    A Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.idl
    A Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.cpp
    A Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.h
    A Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.idl
    A Source/WebCore/html/canvas/OESSampleVariables.cpp
    A Source/WebCore/html/canvas/OESSampleVariables.h
    A Source/WebCore/html/canvas/OESSampleVariables.idl
    A Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.cpp
    A Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.h
    A Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.idl
    M Source/WebCore/html/canvas/WebGL2RenderingContext.cpp
    M Source/WebCore/html/canvas/WebGLExtension.h
    A Source/WebCore/html/canvas/WebGLPolygonMode.cpp
    A Source/WebCore/html/canvas/WebGLPolygonMode.h
    A Source/WebCore/html/canvas/WebGLPolygonMode.idl
    A Source/WebCore/html/canvas/WebGLRenderSharedExponent.cpp
    A Source/WebCore/html/canvas/WebGLRenderSharedExponent.h
    A Source/WebCore/html/canvas/WebGLRenderSharedExponent.idl
    M Source/WebCore/html/canvas/WebGLRenderingContext.cpp
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.h
    A Source/WebCore/html/canvas/WebGLStencilTexturing.cpp
    A Source/WebCore/html/canvas/WebGLStencilTexturing.h
    A Source/WebCore/html/canvas/WebGLStencilTexturing.idl
    M Source/WebCore/platform/graphics/GraphicsContextGL.h
    M Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp
    M Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h
    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:
  -----------
  Implement new WebGL extension drafts
https://bugs.webkit.org/show_bug.cgi?id=259883

Reviewed by Kimmo Kinnunen.

Implemented extension drafts:
* EXT_clip_control
* EXT_conservative_depth
* EXT_depth_clamp
* EXT_render_snorm
* EXT_texture_mirror_clamp_to_edge
* NV_shader_noperspective_interpolation
* OES_sample_variables
* OES_shader_multisample_interpolation
* WEBGL_polygon_mode
* WEBGL_render_shared_exponent
* WEBGL_stencil_texturing

* LayoutTests/TestExpectations:
* LayoutTests/platform/ios-simulator/webgl/webgl-draft-extensions-flag-default-expected.txt:
* LayoutTests/platform/ios-simulator/webgl/webgl-draft-extensions-flag-on-expected.txt:
* LayoutTests/webgl/resources/webgl-draft-extensions-flag.js:
* LayoutTests/webgl/webgl-draft-extensions-flag-default-expected.txt:
* LayoutTests/webgl/webgl-draft-extensions-flag-off-expected.txt:
* LayoutTests/webgl/webgl-draft-extensions-flag-on-expected.txt:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources-input.xcfilelist:
* Source/WebCore/DerivedSources-output.xcfilelist:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/bindings/js/JSDOMConvertWebGL.cpp:
(WebCore::convertToJSValue):
* Source/WebCore/html/canvas/EXTClipControl.cpp: Added.
(WebCore::EXTClipControl::EXTClipControl):
(WebCore::EXTClipControl::getName const):
(WebCore::EXTClipControl::supported):
(WebCore::EXTClipControl::clipControlEXT):
* Source/WebCore/html/canvas/EXTClipControl.h: Added.
* Source/WebCore/html/canvas/EXTClipControl.idl: Added.
* Source/WebCore/html/canvas/EXTConservativeDepth.cpp: Added.
(WebCore::EXTConservativeDepth::EXTConservativeDepth):
(WebCore::EXTConservativeDepth::getName const):
(WebCore::EXTConservativeDepth::supported):
* Source/WebCore/html/canvas/EXTConservativeDepth.h: Added.
* Source/WebCore/html/canvas/EXTConservativeDepth.idl: Added.
* Source/WebCore/html/canvas/EXTDepthClamp.cpp: Added.
(WebCore::EXTDepthClamp::EXTDepthClamp):
(WebCore::EXTDepthClamp::getName const):
(WebCore::EXTDepthClamp::supported):
* Source/WebCore/html/canvas/EXTDepthClamp.h: Added.
* Source/WebCore/html/canvas/EXTDepthClamp.idl: Added.
* Source/WebCore/html/canvas/EXTRenderSnorm.cpp: Added.
(WebCore::EXTRenderSnorm::EXTRenderSnorm):
(WebCore::EXTRenderSnorm::getName const):
(WebCore::EXTRenderSnorm::supported):
* Source/WebCore/html/canvas/EXTRenderSnorm.h: Added.
* Source/WebCore/html/canvas/EXTRenderSnorm.idl: Added.
* Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.cpp: Added.
(WebCore::EXTTextureMirrorClampToEdge::EXTTextureMirrorClampToEdge):
(WebCore::EXTTextureMirrorClampToEdge::getName const):
(WebCore::EXTTextureMirrorClampToEdge::supported):
* Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.h: Added.
* Source/WebCore/html/canvas/EXTTextureMirrorClampToEdge.idl: Added.
* Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.cpp: Added.
(WebCore::NVShaderNoperspectiveInterpolation::NVShaderNoperspectiveInterpolation):
(WebCore::NVShaderNoperspectiveInterpolation::getName const):
(WebCore::NVShaderNoperspectiveInterpolation::supported):
* Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.h: Added.
* Source/WebCore/html/canvas/NVShaderNoperspectiveInterpolation.idl: Added.
* Source/WebCore/html/canvas/OESSampleVariables.cpp: Added.
(WebCore::OESSampleVariables::OESSampleVariables):
(WebCore::OESSampleVariables::getName const):
(WebCore::OESSampleVariables::supported):
* Source/WebCore/html/canvas/OESSampleVariables.h: Added.
* Source/WebCore/html/canvas/OESSampleVariables.idl: Added.
* Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.cpp: Added.
(WebCore::OESShaderMultisampleInterpolation::OESShaderMultisampleInterpolation):
(WebCore::OESShaderMultisampleInterpolation::getName const):
(WebCore::OESShaderMultisampleInterpolation::supported):
* Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.h: Added.
* Source/WebCore/html/canvas/OESShaderMultisampleInterpolation.idl: Added.
* Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:
(WebCore::WebGL2RenderingContext::getTexParameter):
(WebCore::WebGL2RenderingContext::getExtension):
(WebCore::WebGL2RenderingContext::getSupportedExtensions):
(WebCore::WebGL2RenderingContext::renderbufferStorageImpl):
(WebCore::WebGL2RenderingContext::getParameter):
* Source/WebCore/html/canvas/WebGLExtension.h:
* Source/WebCore/html/canvas/WebGLPolygonMode.cpp: Added.
(WebCore::WebGLPolygonMode::WebGLPolygonMode):
(WebCore::WebGLPolygonMode::getName const):
(WebCore::WebGLPolygonMode::supported):
(WebCore::WebGLPolygonMode::polygonModeWEBGL):
* Source/WebCore/html/canvas/WebGLPolygonMode.h: Added.
* Source/WebCore/html/canvas/WebGLPolygonMode.idl: Added.
* Source/WebCore/html/canvas/WebGLRenderSharedExponent.cpp: Added.
(WebCore::WebGLRenderSharedExponent::WebGLRenderSharedExponent):
(WebCore::WebGLRenderSharedExponent::getName const):
(WebCore::WebGLRenderSharedExponent::supported):
* Source/WebCore/html/canvas/WebGLRenderSharedExponent.h: Added.
* Source/WebCore/html/canvas/WebGLRenderSharedExponent.idl: Added.
* Source/WebCore/html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::getExtension):
(WebCore::WebGLRenderingContext::getSupportedExtensions):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::getParameter):
(WebCore::WebGLRenderingContextBase::extensionIsEnabled):
(WebCore::WebGLRenderingContextBase::texParameter):
(WebCore::WebGLRenderingContextBase::validateCapability):
(WebCore::WebGLRenderingContextBase::loseExtensions):
* Source/WebCore/html/canvas/WebGLRenderingContextBase.h:
* Source/WebCore/html/canvas/WebGLStencilTexturing.cpp: Added.
(WebCore::WebGLStencilTexturing::WebGLStencilTexturing):
(WebCore::WebGLStencilTexturing::getName const):
(WebCore::WebGLStencilTexturing::supported):
* Source/WebCore/html/canvas/WebGLStencilTexturing.h: Added.
* Source/WebCore/html/canvas/WebGLStencilTexturing.idl: Added.
* Source/WebCore/platform/graphics/GraphicsContextGL.h:
* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.cpp:
(WebCore::GraphicsContextGLANGLE::clipControlEXT):
(WebCore::GraphicsContextGLANGLE::polygonModeANGLE):
* Source/WebCore/platform/graphics/angle/GraphicsContextGLANGLE.h:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGL.messages.in:
* Source/WebKit/GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h:
(clipControlEXT):
(polygonModeANGLE):
* Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h:
* Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextGLProxyFunctionsGenerated.cpp:
(WebKit::RemoteGraphicsContextGLProxy::clipControlEXT):
(WebKit::RemoteGraphicsContextGLProxy::polygonModeANGLE):

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




More information about the webkit-changes mailing list