[webkit-changes] [WebKit/WebKit] e827b5: Adopt dynamicDowncast<> in some WebGPU code

Anne van Kesteren noreply at github.com
Mon Mar 4 00:09:27 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e827b507b48188652ffe5217598cde1ad9f27fcf
      https://github.com/WebKit/WebKit/commit/e827b507b48188652ffe5217598cde1ad9f27fcf
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-03-04 (Mon, 04 Mar 2024)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/PointerRewriter.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/WGSL.cpp
    M Source/WebGPU/WebGPU/ShaderModule.mm

  Log Message:
  -----------
  Adopt dynamicDowncast<> in some WebGPU code
https://bugs.webkit.org/show_bug.cgi?id=270409

Reviewed by Tadeu Zagallo.

For security & performance.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::write):
(WGSL::Metal::FunctionDefinitionWriter::visit):
(WGSL::Metal::fragDepthIdentifierForFunction):
* Source/WebGPU/WGSL/PointerRewriter.cpp:
(WGSL::PointerRewriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
(WGSL::TypeChecker::chooseOverload):
(WGSL::TypeChecker::resolve):
(WGSL::TypeChecker::texelFormat):
(WGSL::TypeChecker::accessMode):
(WGSL::TypeChecker::addressSpace):
* Source/WebGPU/WGSL/WGSL.cpp:
(WGSL::evaluate):
* Source/WebGPU/WebGPU/ShaderModule.mm:
(WebGPU::ShaderModule::parseFragmentReturnType):
(WebGPU::ShaderModule::ShaderModule):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list