commit | 5e19fc5dc123f3248161156bbb691bc01c73048f | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Tue Apr 02 00:44:22 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 02 00:44:22 2024 +0000 |
tree | ad5dcf39202ae3f39b24a015a7cbb6fff55e4636 | |
parent | 880ecee177c8e94af11410bd2ecb07d5e62e0235 [diff] |
Fix dangling pointer in SubmittedWorkDone This patch fixes the dangling pointer in SubmittedWorkDone. In dawn wire server any userdata will be destroyed in ForwardToServerHelper::ExtractedTypes::Callback, so we should use mUserdata.ExtractAsDangling() to clear mUserdata before it is passed into mCallback() as a parameter. Bug: dawn:2349 Change-Id: Ie845bbe7e80de438b0bf297ab2ed2bfc218c6410 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/181680 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@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.