From 825ebcdc0872c9aafb31df7e1738ad554f86de93 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 11 Jun 2024 17:52:37 +0000 Subject: [PATCH] Bug 1846892 - chore(webgpu)!: remove obsolete `GPUShaderModule.compilationInfo` r=webgpu-reviewers,webidl,nical,smaug Differential Revision: https://phabricator.services.mozilla.com/D213175 --- dom/webgpu/ShaderModule.cpp | 4 ---- dom/webgpu/ShaderModule.h | 1 - dom/webidl/WebGPU.webidl | 2 -- 3 files changed, 7 deletions(-) diff --git a/dom/webgpu/ShaderModule.cpp b/dom/webgpu/ShaderModule.cpp index fce469a1743c..be2304884201 100644 --- a/dom/webgpu/ShaderModule.cpp +++ b/dom/webgpu/ShaderModule.cpp @@ -42,10 +42,6 @@ void ShaderModule::Cleanup() { wgpu_client_free_shader_module_id(bridge->GetClient(), mId); } -already_AddRefed ShaderModule::CompilationInfo(ErrorResult& aRv) { - return GetCompilationInfo(aRv); -} - already_AddRefed ShaderModule::GetCompilationInfo( ErrorResult& aRv) { RefPtr tmp = mCompilationInfo; diff --git a/dom/webgpu/ShaderModule.h b/dom/webgpu/ShaderModule.h index 9c20c71c7d36..fb138feceb8a 100644 --- a/dom/webgpu/ShaderModule.h +++ b/dom/webgpu/ShaderModule.h @@ -22,7 +22,6 @@ class ShaderModule final : public ObjectBase, public ChildOf { ShaderModule(Device* const aParent, RawId aId, const RefPtr& aCompilationInfo); - already_AddRefed CompilationInfo(ErrorResult& aRv); already_AddRefed GetCompilationInfo(ErrorResult& aRv); const RawId mId; diff --git a/dom/webidl/WebGPU.webidl b/dom/webidl/WebGPU.webidl index 7f15a0edfe56..5d311388790e 100644 --- a/dom/webidl/WebGPU.webidl +++ b/dom/webidl/WebGPU.webidl @@ -548,8 +548,6 @@ dictionary GPUPipelineLayoutDescriptor [Func="mozilla::webgpu::Instance::PrefEnabled", Exposed=(Window, DedicatedWorker), SecureContext] interface GPUShaderModule { - [Throws] - Promise compilationInfo(); // To be removed with [Throws] Promise getCompilationInfo(); };