commit | 05e3bcc46db045206ed59f26ca937a40c0575ee6 | [log] [tgz] |
---|---|---|
author | Loko Kung <lokokung@google.com> | Tue Mar 12 17:30:48 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 12 17:30:48 2024 +0000 |
tree | 839beaf085718c165c9bb77c0de93b0907a6aba7 | |
parent | f4064c0de43b8a25230b83d31d9af81c7aaa2698 [diff] |
[dawn][wire] Make the server use a weak_ptr for callbacks. - This is necessary to avoid raw_ptr exceptions. Note that before the pointer was valid because of the alive-ness check through the weak_ptr<bool>, but could potentially race because the server could in theory be dropped between the check. This change also fixes that. Bug: dawn:2450 Change-Id: I82755ece9d0e9cbe38653d48d762d17815ecf525 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/178740 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: 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.