commit | ab528c7875ccc7481506f213b26a5317bc859337 | [log] [tgz] |
---|---|---|
author | Loko Kung <lokokung@google.com> | Mon Nov 06 23:48:26 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 06 23:48:26 2023 +0000 |
tree | eaeabd73da2974bec97a5b6756cebbd9fb25a083 | |
parent | 562ad899d9b72b4f37ea765cef743c0bd9aa02ab [diff] |
Clear all callbacks when the Instance is dropped. - Fixes fuzzer issue in the bug. The userdata was not cleaned up because an async function (MapAsync) was called on a destroyed device, and the associated callback was never called in the fuzzer(s). - Modernizes the code a bit to use MutexProtected. - Updates MutexProtected to work with const-ness. Bug: chromium:1497701 Change-Id: I15617bd00e49e6c2d1c5c2805e4335438b9ce0e2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/158824 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.