commit | 11267a7e7d25a2771ecd9972210e5273389ac6f8 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Tue Apr 02 00:44:24 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 02 00:44:24 2024 +0000 |
tree | 7884e8989edc22bd6336ac37157a86f591bd678d | |
parent | 5e19fc5dc123f3248161156bbb691bc01c73048f [diff] |
Fix dangling pointers in DeviceBase This patch fixes all the dangling pointers in DeviceBase. In Chromium the callbacks and userdata in DeviceBase should be cleared after Device.Destroy() is called and before Dawn wire server is destroyed, so we should support setting nullptr to callbacks and userdata even when Device is lost. Bug: dawn:2349 Change-Id: I5f4e919e44b66181b4fac003ef25e088461d26cc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/181144 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.