[M146] [dawn][native] Updates AsyncTasks to remove need of WaitableEvent. - Previously, the WaitableEvent and how it was being handled caused a UAF as per the bug below. This change simplifies the logic in the AsyncTasks to remove the WaitableEvent entirely, and get rid of the need of the intermediate WaitableTask struct that we used to pair the AsyncTask to it's manager. Since we know that the task's manager must be the one that created it, we can track that information at construction and use it directly later on. - This change also updates the AsyncTask to use MutexCondVarProtected for synchronization. Bug: 493900619 Change-Id: I45da53638727ac86d60e9ffd317ad342fced3174 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/299315 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/299955 Auto-Submit: Loko Kung <lokokung@google.com> Commit-Queue: Geoff Lang <geofflang@chromium.org>
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.