commit | 200941c797512895039e9f0315fc18fd9d9734ad | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Tue Jan 05 08:37:08 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Jan 05 08:37:08 2021 +0000 |
tree | 3f98e7683a33ecfbcf7b75060f2c4289b8ea079c | |
parent | e3fd02610817868ccf96f698666d0104035f3dab [diff] |
dawn_wire: Return early in callbacks after the server is destroyed After the server is destroyed, the server's can't do anything like forward callbacks to the client. Track this with a weak_ptr and return early if it has expired. It also updates device destruction in dawn_native so the lost callback is always called, even on graceful destruction. This is consistent with the rest of WebGPU where all callbacks are guaranteed to be called in finite time. Bug: chromium:1147416, chromium:1161943 Change-Id: Ib80dea36517401a2b8eafb01ded255ebbe757aef Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/35840 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
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)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.