commit | a45458024121d4cd6c7098d8af067746fa46f40b | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Tue Apr 01 19:54:20 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Apr 01 19:54:20 2025 -0700 |
tree | 7d4880664386e40da1c93c8df4e1c6f23621c958 | |
parent | 86755d629314f9f9d12c4c356e478d6f251e398c [diff] |
test_runner.js: fix heartbeat code disrupting async behavior The way we injected heartbeats meant we were returning a userspace promise to the CTS, rather than the real one from the browser. Modify this so that we attach heartbeats to the promise, but still return the original promise object. This fixes `webgpu:api,validation,buffer,mapping:` tests that were testing the exact behavior of the API (task vs. microtask). There's a small chance this will fix some other tests, too. I've removed the code that was supposed to trigger a heartbeat both before and after the responding code. It would not have worked: resolve() doesn't run the awaiting code, it just marks the promise as resolved, so both heartbeats ran before. I tried fixing it, but it made some tests very slow, so I've just removed the second heartbeat. I don't think it's that useful; it only helps on slow synchronous code. Fixed: 42241427 Change-Id: I4995c3518f1dc5d05524a0155f601f9103891d8d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/233954 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Auto-Submit: Kai Ninomiya <kainino@chromium.org> Reviewed-by: dan sinclair <dsinclair@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.