HomeSort by relevance Sort by last modified time
    Searched refs:FencedAllocator (Results 1 - 3 of 3) sorted by null

  /external/chromium_org/gpu/command_buffer/client/
fenced_allocator.h 5 // This file contains the definition of the FencedAllocator class.
19 // FencedAllocator provides a mechanism to manage allocations within a fixed
29 class GPU_EXPORT FencedAllocator {
35 // Creates a FencedAllocator. Note that the size of the buffer is passed, but
37 FencedAllocator(unsigned int size,
40 ~FencedAllocator();
142 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocator);
145 // This class functions just like FencedAllocator, but its API uses pointers
166 FencedAllocator::Offset offset = allocator_.Alloc(size);
211 // It translates FencedAllocator::kInvalidOffset to NULL
    [all...]
fenced_allocator.cc 5 // This file contains the implementation of the FencedAllocator class.
33 const FencedAllocator::Offset FencedAllocator::kInvalidOffset;
36 FencedAllocator::FencedAllocator(unsigned int size,
44 FencedAllocator::~FencedAllocator() {
61 FencedAllocator::Offset FencedAllocator::Alloc(unsigned int size) {
93 void FencedAllocator::Free(FencedAllocator::Offset offset)
    [all...]
fenced_allocator_test.cc 5 // This file contains the tests for the FencedAllocator class.
91 // Test fixture for FencedAllocator test - Creates a FencedAllocator, using a
99 allocator_.reset(new FencedAllocator(kBufferSize, helper_.get()));
111 scoped_ptr<FencedAllocator> allocator_;
120 FencedAllocator::Offset offset = allocator_->Alloc(kSize);
122 EXPECT_NE(FencedAllocator::kInvalidOffset, offset);
133 FencedAllocator::Offset offset = allocator_->Alloc(0);
134 EXPECT_EQ(FencedAllocator::kInvalidOffset, offset);
148 FencedAllocator::Offset offsets[kAllocCount]
    [all...]

Completed in 73 milliseconds