Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 219fc036fbe9fe884fd02b5e4412517cd59e4c6e https://github.com/WebKit/WebKit/commit/219fc036fbe9fe884fd02b5e4412517cd59e4c6e Author: Myles C. Maxfield <mmaxfi...@apple.com> Date: 2023-06-02 (Fri, 02 Jun 2023)
Changed paths: M Source/WebCore/Modules/WebGPU/GPUDevice.cpp M Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUAdapterImpl.cpp M Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.cpp M Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.h M Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUDevice.h M Source/WebGPU/WebGPU/Adapter.mm M Source/WebGPU/WebGPU/BindGroup.mm M Source/WebGPU/WebGPU/BindGroupLayout.mm M Source/WebGPU/WebGPU/Buffer.mm M Source/WebGPU/WebGPU/CommandBuffer.mm M Source/WebGPU/WebGPU/CommandEncoder.mm M Source/WebGPU/WebGPU/ComputePassEncoder.mm M Source/WebGPU/WebGPU/ComputePipeline.mm M Source/WebGPU/WebGPU/Device.h M Source/WebGPU/WebGPU/Device.mm M Source/WebGPU/WebGPU/Instance.mm M Source/WebGPU/WebGPU/PipelineLayout.mm M Source/WebGPU/WebGPU/PresentationContext.mm M Source/WebGPU/WebGPU/QuerySet.mm M Source/WebGPU/WebGPU/Queue.mm M Source/WebGPU/WebGPU/RenderBundle.mm M Source/WebGPU/WebGPU/RenderBundleEncoder.mm M Source/WebGPU/WebGPU/RenderPassEncoder.mm M Source/WebGPU/WebGPU/RenderPipeline.mm M Source/WebGPU/WebGPU/Sampler.mm M Source/WebGPU/WebGPU/ShaderModule.mm M Source/WebGPU/WebGPU/Texture.mm M Source/WebGPU/WebGPU/TextureView.mm M Source/WebGPU/WebGPU/WebGPU.h M Source/WebGPU/WebGPU/WebGPUExt.h M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.cpp M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.h M Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.messages.in M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteDeviceProxy.cpp M Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteDeviceProxy.h Log Message: ----------- [WebGPU] Update WebGPU.h to upstream ToT https://bugs.webkit.org/show_bug.cgi?id=257640 <rdar://problem/110156868> Reviewed by Mike Wyrzykowski. This updates WebGPU.h to the revision 245130311ef771c958ba43c322aa7ef1f9edfb8f at https://github.com/webgpu-native/webgpu-headers. This does a few things: - All objects get retain/release calls. This is really exciting because it means can delete PAL::WebGPU::DeviceWrapper and PAL::WebGPU::SwapChainWrapper. I'll do that in a follow-up patch. Also, we can delete the release calls from WebGPUExt.h. - The header now has places to put NS_REFINED_FOR_SWIFT. I've already started creating a Swift facade which can use this at https://github.com/WebKit/WebKit/pull/13849 - The header now has places to put nullability macros. I'll do this in a follow- up patch. - The device lost callback has moved from being set in a method to being part of the device's creation descriptor. (This means it no longer can change during the lifetime of the device, but instead has to be constant for a device.) I ended up actually deleting the implementation of this, because the model is significantly different now; it's now a "push" operation from the GPUP to the WP, rather than a "pull" model. I'll reimplement this in a follow-up patch. - A few enums have been tweaked. * Source/WebCore/Modules/WebGPU/GPUDevice.cpp: (WebCore::GPUDevice::lost): * Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUAdapterImpl.cpp: (PAL::WebGPU::supportedFeatures): (PAL::WebGPU::AdapterImpl::requestDevice): * Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.cpp: (PAL::WebGPU::DeviceImpl::resolveDeviceLostPromise): Deleted. * Source/WebCore/PAL/pal/graphics/WebGPU/Impl/WebGPUDeviceImpl.h: * Source/WebCore/PAL/pal/graphics/WebGPU/WebGPUDevice.h: * Source/WebGPU/WebGPU/Adapter.mm: (wgpuAdapterReference): * Source/WebGPU/WebGPU/BindGroup.mm: (wgpuBindGroupReference): * Source/WebGPU/WebGPU/BindGroupLayout.mm: (wgpuBindGroupLayoutReference): * Source/WebGPU/WebGPU/Buffer.mm: (WebGPU::Buffer::mapAsync): (wgpuBufferReference): * Source/WebGPU/WebGPU/CommandBuffer.mm: (wgpuCommandBufferReference): * Source/WebGPU/WebGPU/CommandEncoder.mm: (wgpuCommandEncoderReference): * Source/WebGPU/WebGPU/ComputePassEncoder.mm: (wgpuComputePassEncoderReference): * Source/WebGPU/WebGPU/ComputePipeline.mm: (wgpuComputePipelineReference): * Source/WebGPU/WebGPU/Device.h: * Source/WebGPU/WebGPU/Device.mm: (wgpuDeviceReference): (wgpuDevicePopErrorScope): (wgpuDevicePopErrorScopeWithBlock): (WebGPU::Device::setDeviceLostCallback): Deleted. (wgpuDeviceSetDeviceLostCallback): Deleted. (wgpuDeviceSetDeviceLostCallbackWithBlock): Deleted. * Source/WebGPU/WebGPU/Instance.mm: (wgpuInstanceReference): * Source/WebGPU/WebGPU/PipelineLayout.mm: (wgpuPipelineLayoutReference): * Source/WebGPU/WebGPU/PresentationContext.mm: (wgpuSurfaceReference): (wgpuSwapChainReference): (wgpuSwapChainRelease): * Source/WebGPU/WebGPU/QuerySet.mm: (wgpuQuerySetReference): * Source/WebGPU/WebGPU/Queue.mm: (wgpuQueueReference): * Source/WebGPU/WebGPU/RenderBundle.mm: (wgpuRenderBundleReference): * Source/WebGPU/WebGPU/RenderBundleEncoder.mm: (wgpuRenderBundleEncoderReference): * Source/WebGPU/WebGPU/RenderPassEncoder.mm: (wgpuRenderPassEncoderReference): * Source/WebGPU/WebGPU/RenderPipeline.mm: (wgpuRenderPipelineReference): * Source/WebGPU/WebGPU/Sampler.mm: (wgpuSamplerReference): * Source/WebGPU/WebGPU/ShaderModule.mm: (wgpuShaderModuleReference): * Source/WebGPU/WebGPU/Texture.mm: (wgpuTextureReference): * Source/WebGPU/WebGPU/TextureView.mm: (wgpuTextureViewReference): * Source/WebGPU/WebGPU/WebGPU.h: * Source/WebGPU/WebGPU/WebGPUExt.h: * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.cpp: (WebKit::RemoteDevice::resolveDeviceLostPromise): Deleted. * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteDevice.h: * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteDeviceProxy.cpp: (WebKit::WebGPU::RemoteDeviceProxy::resolveDeviceLostPromise): Deleted. * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteDeviceProxy.h: Canonical link: https://commits.webkit.org/264836@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes