Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cfaf1aa8bc26e28add3612353e0a6885dcffb757
      
https://github.com/WebKit/WebKit/commit/cfaf1aa8bc26e28add3612353e0a6885dcffb757
  Author: Fady Farag <[email protected]>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M Source/WebGPU/WGSL/Overload.cpp
    M Source/WebGPU/WebGPU/ComputePassEncoder.mm
    M Source/WebGPU/WebGPU/PipelineLayout.mm

  Log Message:
  -----------
  Remove unnecessary `std::optional` initialization in WebGPU
https://bugs.webkit.org/show_bug.cgi?id=316735
rdar://179176441

Reviewed by Abrar Rahman Protyasha.

ISO C++ Standard explicitly guarantees that a default-initialized std::optional
does not contain a value. So, initializing one with std::nullopt is redundant.

* Source/WebGPU/WGSL/Overload.cpp:
(WGSL::OverloadResolver::resolve):
* Source/WebGPU/WebGPU/ComputePassEncoder.mm:
(WebGPU::ComputePassEncoder::executePreDispatchCommands):
* Source/WebGPU/WebGPU/PipelineLayout.mm:
(WebGPU::Device::createPipelineLayout):

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



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

Reply via email to