[dawn][native] Fix ordering issue for AsyncTasks. - Make sure that we update the task manager before we signal the tasks. This is important because the signal will wake any Waits, which is used to implement waiting for all tasks before deleting the task manager. Before, it was possible to race, and have a race where the main thread was woken and deleted the task manager before the task tried to remove itself resulting in a use after free. Bug: 500378580 Change-Id: I49f3c04904e4447a413ffa6572c91e92cda8ecf9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/301515 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Auto-Submit: Loko Kung <lokokung@google.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.