commit | e2bde70528edbae25e2c0f265f833c6ccae5a025 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Wed Dec 11 11:30:36 2024 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 11 11:30:36 2024 -0800 |
tree | 0c28923586b75563a34ef999250b1b5699e5aae3 | |
parent | c7112e903eb75e9ca5b6443ec82775b2875ab8e7 [diff] |
[dawn][fuzzer] Fixes leaks caused when device creation fails. - Since device construction and initialization are separated, it is possible for a device to be constructed but never returned. This was causing a leak of such devices because we rely on the dropping of an external reference to devices to clean up potential cyclic dependencies. This change fixes the issue by promoting and dropping an "external" reference to the device in failure cases. Bug: 382816005 Change-Id: I4e19baf9ef2b975e79aef4195fc38829f22e5011 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/218914 Auto-Submit: Loko Kung <lokokung@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Kai Ninomiya <kainino@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.