Bug 1831263: fix(webgpu): track forgotten strong refs. in shader compilation r=webgpu-reviewers,jgilbert

Co-Authored-By: Kelsey Gilbert <jgilbert@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D179812
This commit is contained in:
Erich Gubler 2023-06-05 16:47:54 +00:00
parent 27e4816536
commit b9b09f1036
3 changed files with 3 additions and 5 deletions

View File

@ -10,7 +10,7 @@
namespace mozilla::webgpu {
GPU_IMPL_CYCLE_COLLECTION(CompilationInfo, mParent)
GPU_IMPL_CYCLE_COLLECTION(CompilationInfo, mParent, mMessages)
GPU_IMPL_JS_WRAP(CompilationInfo)
CompilationInfo::CompilationInfo(ShaderModule* const aParent)

View File

@ -13,7 +13,7 @@
namespace mozilla::webgpu {
GPU_IMPL_CYCLE_COLLECTION(ShaderModule, mParent)
GPU_IMPL_CYCLE_COLLECTION(ShaderModule, mParent, mCompilationInfo)
GPU_IMPL_JS_WRAP(ShaderModule)
ShaderModule::ShaderModule(Device* const aParent, RawId aId,

View File

@ -17,9 +17,7 @@ class Device;
class ShaderModule final : public ObjectBase, public ChildOf<Device> {
public:
GPU_DECL_CYCLE_COLLECTION(
ShaderModule) // TODO: kvark's WIP patch was passing CompilationInfo as a
// second argument here.
GPU_DECL_CYCLE_COLLECTION(ShaderModule)
GPU_DECL_JS_WRAP(ShaderModule)
ShaderModule(Device* const aParent, RawId aId,