Home
last modified time | relevance | path

Searched refs:RingBufferAllocator (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DRingBufferAllocator.h27 class RingBufferAllocator {
29 RingBufferAllocator() = default;
30 RingBufferAllocator(uint64_t maxSize);
31 ~RingBufferAllocator() = default;
32 RingBufferAllocator(const RingBufferAllocator&) = default;
33 RingBufferAllocator& operator=(const RingBufferAllocator&) = default;
DRingBufferAllocator.cpp31 RingBufferAllocator::RingBufferAllocator(uint64_t maxSize) : mMaxBlockSize(maxSize) { in RingBufferAllocator() function in dawn_native::RingBufferAllocator
34 void RingBufferAllocator::Deallocate(ExecutionSerial lastCompletedSerial) { in Deallocate()
45 uint64_t RingBufferAllocator::GetSize() const { in GetSize()
49 uint64_t RingBufferAllocator::GetUsedSize() const { in GetUsedSize()
53 bool RingBufferAllocator::Empty() const { in Empty()
64 uint64_t RingBufferAllocator::Allocate(uint64_t allocationSize, ExecutionSerial serial) { in Allocate()
DDynamicUploader.cpp50 const RingBufferAllocator& ringBufferAllocator = ringBuffer->mAllocator; in AllocateInternal()
61 uint64_t startOffset = RingBufferAllocator::kInvalidOffset; in AllocateInternal()
68 if (startOffset == RingBufferAllocator::kInvalidOffset) { in AllocateInternal()
76 ASSERT(startOffset != RingBufferAllocator::kInvalidOffset); in AllocateInternal()
DDynamicUploader.h54 RingBufferAllocator mAllocator;
DCMakeLists.txt152 "RingBufferAllocator.cpp"
153 "RingBufferAllocator.h"
DBUILD.gn307 "RingBufferAllocator.cpp",
308 "RingBufferAllocator.h",
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DRingBufferAllocatorTests.cpp21 constexpr uint64_t RingBufferAllocator::kInvalidOffset;
26 RingBufferAllocator allocator(sizeInBytes); in TEST()
35 RingBufferAllocator::kInvalidOffset); in TEST()
42 ASSERT_EQ(allocator.Allocate(1, ExecutionSerial(3)), RingBufferAllocator::kInvalidOffset); in TEST()
50 RingBufferAllocator allocator(maxNumOfFrames * frameSizeInBytes); in TEST()
64 RingBufferAllocator allocator(maxNumOfFrames * frameSizeInBytes); in TEST()
94 RingBufferAllocator allocator(maxNumOfFrames * frameSizeInBytes); in TEST()
111 RingBufferAllocator::kInvalidOffset); in TEST()
137 ASSERT_EQ(allocator.Allocate(frameSizeInBytes, serial), RingBufferAllocator::kInvalidOffset); in TEST()
159 ASSERT_EQ(allocator.Allocate(frameSizeInBytes, serial), RingBufferAllocator::kInvalidOffset); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DShaderVisibleDescriptorAllocatorD3D12.cpp105 if (startOffset == RingBufferAllocator::kInvalidOffset) { in AllocateGPUDescriptors()
205 mAllocator = RingBufferAllocator(mDescriptorCount); in AllocateAndSwitchShaderVisibleHeap()
DShaderVisibleDescriptorAllocatorD3D12.h86 RingBufferAllocator mAllocator;