FencedAllocator 33 gpu/command_buffer/client/fenced_allocator.cc const FencedAllocator::Offset FencedAllocator::kInvalidOffset; FencedAllocator 36 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::FencedAllocator(unsigned int size, FencedAllocator 46 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::~FencedAllocator() { FencedAllocator 63 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::Offset FencedAllocator::Alloc(unsigned int size) { FencedAllocator 95 gpu/command_buffer/client/fenced_allocator.cc void FencedAllocator::Free(FencedAllocator::Offset offset) { FencedAllocator 108 gpu/command_buffer/client/fenced_allocator.cc void FencedAllocator::FreePendingToken( FencedAllocator 109 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::Offset offset, int32 token) { FencedAllocator 119 gpu/command_buffer/client/fenced_allocator.cc unsigned int FencedAllocator::GetLargestFreeSize() { FencedAllocator 132 gpu/command_buffer/client/fenced_allocator.cc unsigned int FencedAllocator::GetLargestFreeOrPendingSize() { FencedAllocator 152 gpu/command_buffer/client/fenced_allocator.cc bool FencedAllocator::CheckConsistency() { FencedAllocator 170 gpu/command_buffer/client/fenced_allocator.cc bool FencedAllocator::InUse() { FencedAllocator 176 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::BlockIndex FencedAllocator::CollapseFreeBlock( FencedAllocator 197 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::BlockIndex FencedAllocator::WaitForTokenAndFreeBlock( FencedAllocator 207 gpu/command_buffer/client/fenced_allocator.cc void FencedAllocator::FreeUnused() { FencedAllocator 225 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::Offset FencedAllocator::AllocInBlock(BlockIndex index, FencedAllocator 245 gpu/command_buffer/client/fenced_allocator.cc FencedAllocator::BlockIndex FencedAllocator::GetBlockByOffset(Offset offset) { FencedAllocator 30 gpu/command_buffer/client/fenced_allocator.h class GPU_EXPORT FencedAllocator { FencedAllocator 38 gpu/command_buffer/client/fenced_allocator.h FencedAllocator(unsigned int size, FencedAllocator 42 gpu/command_buffer/client/fenced_allocator.h ~FencedAllocator(); FencedAllocator 145 gpu/command_buffer/client/fenced_allocator.h DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocator); FencedAllocator 170 gpu/command_buffer/client/fenced_allocator.h FencedAllocator::Offset offset = allocator_.Alloc(size); FencedAllocator 216 gpu/command_buffer/client/fenced_allocator.h void *GetPointer(FencedAllocator::Offset offset) { FencedAllocator 217 gpu/command_buffer/client/fenced_allocator.h return (offset == FencedAllocator::kInvalidOffset) ? FencedAllocator 223 gpu/command_buffer/client/fenced_allocator.h FencedAllocator::Offset GetOffset(void *pointer) { FencedAllocator 225 gpu/command_buffer/client/fenced_allocator.h static_cast<FencedAllocator::Offset>( FencedAllocator 227 gpu/command_buffer/client/fenced_allocator.h FencedAllocator::kInvalidOffset; FencedAllocator 252 gpu/command_buffer/client/fenced_allocator.h FencedAllocator &allocator() { return allocator_; } FencedAllocator 257 gpu/command_buffer/client/fenced_allocator.h FencedAllocator allocator_; FencedAllocator 105 gpu/command_buffer/client/fenced_allocator_test.cc allocator_.reset(new FencedAllocator(kBufferSize, FencedAllocator 119 gpu/command_buffer/client/fenced_allocator_test.cc scoped_ptr<FencedAllocator> allocator_; FencedAllocator 128 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset = allocator_->Alloc(kSize); FencedAllocator 130 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 141 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset = allocator_->Alloc(0); FencedAllocator 142 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_EQ(FencedAllocator::kInvalidOffset, offset); FencedAllocator 156 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offsets[kAllocCount]; FencedAllocator 159 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offsets[i]); FencedAllocator 165 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); FencedAllocator 166 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_EQ(FencedAllocator::kInvalidOffset, offset_failed); FencedAllocator 173 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offsets[0]); FencedAllocator 179 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_EQ(FencedAllocator::kInvalidOffset, offset_failed); FencedAllocator 198 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offsets[kAllocCount]; FencedAllocator 201 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offsets[i]); FencedAllocator 207 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize); FencedAllocator 208 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_EQ(FencedAllocator::kInvalidOffset, offset_failed); FencedAllocator 224 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offsets[0]); FencedAllocator 246 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offsets[kAllocCount]; FencedAllocator 249 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(FencedAllocator::kInvalidOffset, offsets[i]); FencedAllocator 305 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset = allocator_->Alloc(kBufferSize); FencedAllocator 306 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 313 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 322 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset1 = allocator_->Alloc(kSize); FencedAllocator 323 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset1); FencedAllocator 324 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset2 = allocator_->Alloc(kSize); FencedAllocator 325 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset2); FencedAllocator 331 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 335 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset1); FencedAllocator 348 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset = allocator_->Alloc(kBufferSize); FencedAllocator 349 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 356 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 365 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset1 = allocator_->Alloc(kSize); FencedAllocator 366 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset1); FencedAllocator 367 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset offset2 = allocator_->Alloc(kSize); FencedAllocator 368 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset2); FencedAllocator 391 gpu/command_buffer/client/fenced_allocator_test.cc ASSERT_NE(FencedAllocator::kInvalidOffset, offset); FencedAllocator 418 gpu/command_buffer/client/fenced_allocator_test.cc scoped_ptr<FencedAllocator> allocator( FencedAllocator 419 gpu/command_buffer/client/fenced_allocator_test.cc new FencedAllocator(kBufferSize, FencedAllocator 424 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset mem1 = allocator->Alloc(kAllocSize); FencedAllocator 425 gpu/command_buffer/client/fenced_allocator_test.cc FencedAllocator::Offset mem2 = allocator->Alloc(kAllocSize); FencedAllocator 426 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(mem1, FencedAllocator::kInvalidOffset); FencedAllocator 427 gpu/command_buffer/client/fenced_allocator_test.cc EXPECT_NE(mem2, FencedAllocator::kInvalidOffset); FencedAllocator 439 gpu/command_buffer/client/fenced_allocator_test.cc base::Bind(&FencedAllocator::Free,