commit | b16cf3f2a96b6aebff5ad4b702182ad6a8c2e7c4 | [log] [tgz] |
---|---|---|
author | Kyle Charbonneau <kylechar@google.com> | Wed Mar 05 06:47:59 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 05 06:47:59 2025 -0800 |
tree | 5c35155f3502dc576d925aef755fdf804b0a8213 | |
parent | 9bc4cf50aca88debc1f2e4c4762f09773f6ee6e7 [diff] |
Add SlabAllocator::DeleteEmptySlabs() SlabAllocator never freed allocated memory until it was deleted previously. This means for SlabAllocator that grew and then shrunk it could be holding onto unnecessary memory. Add DeleteEmptySlabs() that will delete any slabs with zero allocations in them. This will be called from Device::ReduceMemoryUsage() as a follow up. Bug: 399826580, 42242057 Change-Id: I0e4d8582ff9a5f440fa67950c595dc2c4a895a50 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/228814 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Kyle Charbonneau <kylechar@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.