commit | 7e936cebeefe7f297299795b67d87c163b9d845c | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Tue Aug 19 11:21:57 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 19 11:21:57 2025 -0700 |
tree | 37d103726e6ce0e4cb13028f8566be67e54bcaf3 | |
parent | 4d95ede7306f6c7fc49d8a6d968de4903489307b [diff] |
Refactor ProgressBar for easier testing Refactors ProgressBar to be an interface with two implementations, realProgressBar (the existing impl) & StubProgressBar (no-op for unsupported terminals and testing. The terminal character check is moved into the constructor to allow selecting whether to return a realProgressBar or a StubProgressBar. Callers no longer need to perform the check themselves, and are guaranteed to get a ProgressBar back, so can avoid later nil checks. This change bypasses the need to write a dependency injection wrapper for the `term` package for testing fuzz/main.go Bug: 344014313 Change-Id: I8e4d5342ce4f42750b3179730a72ab6a4c7ace1d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/258094 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Brian Sheedy <bsheedy@google.com> Reviewed-by: Brian Sheedy <bsheedy@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.