Triage Dawn TODOs

Change-Id: Ia010e534df1ac8a82008b38c44cfd9dc3f0b1aa6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/53340
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Austin Eng
2021-06-04 22:23:56 +00:00
committed by Dawn LUCI CQ
parent aacf2e03dc
commit ed8a8c0893
47 changed files with 111 additions and 259 deletions

View File

@@ -209,7 +209,7 @@ void SlabAllocatorImpl::Deallocate(void* ptr) {
mRecycledSlabs.Prepend(slab);
}
// TODO(enga): Occasionally prune slabs if |blocksInUse == 0|.
// TODO(crbug.com/dawn/825): Occasionally prune slabs if |blocksInUse == 0|.
// Doing so eagerly hurts performance.
}
@@ -228,7 +228,7 @@ void SlabAllocatorImpl::GetNewSlab() {
return;
}
// TODO(enga): Use aligned_alloc with C++17.
// TODO(crbug.com/dawn/824): Use aligned_alloc with C++17.
char* allocation = new char[mTotalAllocationSize];
char* alignedPtr = AlignPtr(allocation, mAllocationAlignment);