Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 642728bc15438d40a8ff1b9e23e6fdda6219def8
https://github.com/WebKit/WebKit/commit/642728bc15438d40a8ff1b9e23e6fdda6219def8
Author: Ruthvik Konda <[email protected]>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M Source/WebGPU/WebGPU/Buffer.mm
M Source/WebGPU/WebGPU/CommandEncoder.mm
M Source/WebGPU/WebGPU/Device.mm
M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
M Source/WebGPU/WebGPU/TextureOrTextureView.h
Log Message:
-----------
Use protect() instead of RefPtr { } in Source/WebGPU/WebGPU
https://bugs.webkit.org/show_bug.cgi?id=312245
rdar://174722366
Reviewed by Mike Wyrzykowski and Anne van Kesteren.
Mechanical migration from RefPtr { expr } to protect(expr) in the WebGPU
Metal backend, aligning with the codebase-wide transition away from
brace-initialized smart pointer temporaries.
No new tests needed (no behavioral change, style-only refactor).
* Source/WebGPU/WebGPU/Buffer.mm:
(WebGPU::Buffer::skippedDrawIndirectIndexedValidation):
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::addSampler):
* Source/WebGPU/WebGPU/Device.mm:
(WebGPU::Device::getXRViewSubImage):
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::setBindGroup):
(WebGPU::RenderBundleEncoder::setVertexBuffer):
* Source/WebGPU/WebGPU/TextureOrTextureView.h:
(WebGPU::TextureOrTextureView::setCommandEncoder):
(WebGPU::TextureOrTextureView::rasterizationMapForSlice):
Canonical link: https://commits.webkit.org/311260@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications