Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0d64298006f1a69ff419700588a8b65591bb8d4e
https://github.com/WebKit/WebKit/commit/0d64298006f1a69ff419700588a8b65591bb8d4e
Author: Ruthvik Konda <[email protected]>
Date: 2026-06-04 (Thu, 04 Jun 2026)
Changed paths:
M Source/WebCore/Modules/WebGPU/GPUDevice.cpp
M Source/WebCore/Modules/WebGPU/GPUQueue.cpp
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUCommandEncoderImpl.cpp
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUImpl.cpp
M
Source/WebCore/Modules/WebGPU/Implementation/WebGPUPresentationContextImpl.cpp
M Source/WebCore/Modules/WebGPU/Implementation/WebGPUQueueImpl.cpp
Log Message:
-----------
Reduce remaining `.get()` calls on smart pointers in WebGPU
https://bugs.webkit.org/show_bug.cgi?id=316272
rdar://178682471
Reviewed by Mike Wyrzykowski.
Follow-up to 313955@main, which left several redundant `.get()` calls
untouched (primarily in the `Implementation/` subdirectory). Removing
them at seventeen sites across seven files relies on the same
operators: `Ref<T>::operator T&()` (Ref.h:170), `RefPtr<T>::operator*()`
(RefPtr.h:126), and `RefPtr<T>::operator T*()` (RefPtr.h:120).
One statement-form initialization also switched from copy-init (`=`)
to brace-init (`{}`) per current WebKit style.
No new tests needed (no behavioral change).
* Source/WebCore/Modules/WebGPU/GPUDevice.cpp:
(WebCore::GPUDevice::importExternalTexture):
* Source/WebCore/Modules/WebGPU/GPUQueue.cpp:
(WebCore::isOriginClean):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUCommandEncoderImpl.cpp:
(WebCore::WebGPU::CommandEncoderImpl::copyBufferToTexture):
(WebCore::WebGPU::CommandEncoderImpl::copyTextureToBuffer):
(WebCore::WebGPU::CommandEncoderImpl::copyTextureToTexture):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp:
(WebCore::WebGPU::DeviceImpl::createBindGroup):
(WebCore::WebGPU::DeviceImpl::createShaderModule):
(WebCore::WebGPU::convertToBacking):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUImpl.cpp:
(WebCore::WebGPU::GPUImpl::createPresentationContext):
*
Source/WebCore/Modules/WebGPU/Implementation/WebGPUPresentationContextImpl.cpp:
(WebCore::WebGPU::PresentationContextImpl::configure):
* Source/WebCore/Modules/WebGPU/Implementation/WebGPUQueueImpl.cpp:
(WebCore::WebGPU::QueueImpl::writeTexture):
Canonical link: https://commits.webkit.org/314531@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications