Searched refs:RingBufferAllocator (Results 1 – 9 of 9) sorted by relevance
27 class RingBufferAllocator {29 RingBufferAllocator() = default;30 RingBufferAllocator(uint64_t maxSize);31 ~RingBufferAllocator() = default;32 RingBufferAllocator(const RingBufferAllocator&) = default;33 RingBufferAllocator& operator=(const RingBufferAllocator&) = default;
31 RingBufferAllocator::RingBufferAllocator(uint64_t maxSize) : mMaxBlockSize(maxSize) { in RingBufferAllocator() function in dawn_native::RingBufferAllocator34 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()
50 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()
54 RingBufferAllocator mAllocator;
152 "RingBufferAllocator.cpp"153 "RingBufferAllocator.h"
307 "RingBufferAllocator.cpp",308 "RingBufferAllocator.h",
21 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 …]
105 if (startOffset == RingBufferAllocator::kInvalidOffset) { in AllocateGPUDescriptors()205 mAllocator = RingBufferAllocator(mDescriptorCount); in AllocateAndSwitchShaderVisibleHeap()
86 RingBufferAllocator mAllocator;