Searched refs:FencedAllocator (Results 1 - 3 of 3) sorted by relevance

/external/chromium_org/gpu/command_buffer/client/
H A Dfenced_allocator.h5 // This file contains the definition of the FencedAllocator class.
22 // FencedAllocator provides a mechanism to manage allocations within a fixed
32 class GPU_EXPORT FencedAllocator { class in namespace:gpu
38 // Creates a FencedAllocator. Note that the size of the buffer is passed, but
40 FencedAllocator(unsigned int size,
44 ~FencedAllocator();
147 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocator);
150 // This class functions just like FencedAllocator, but its API uses pointers
172 FencedAllocator::Offset offset = allocator_.Alloc(size);
217 // It translates FencedAllocator
[all...]
H A Dfenced_allocator.cc5 // This file contains the implementation of the FencedAllocator class.
33 const FencedAllocator::Offset FencedAllocator::kInvalidOffset;
36 FencedAllocator::FencedAllocator(unsigned int size, function in class:gpu::FencedAllocator
46 FencedAllocator::~FencedAllocator() {
63 FencedAllocator::Offset FencedAllocator::Alloc(unsigned int size) {
95 void FencedAllocator
[all...]
H A Dfenced_allocator_test.cc5 // This file contains the tests for the FencedAllocator class.
97 // Test fixture for FencedAllocator test - Creates a FencedAllocator, using a
105 allocator_.reset(new FencedAllocator(kBufferSize,
119 scoped_ptr<FencedAllocator> allocator_;
128 FencedAllocator::Offset offset = allocator_->Alloc(kSize);
130 EXPECT_NE(FencedAllocator::kInvalidOffset, offset);
141 FencedAllocator::Offset offset = allocator_->Alloc(0);
142 EXPECT_EQ(FencedAllocator::kInvalidOffset, offset);
156 FencedAllocator
[all...]

Completed in 80 milliseconds