| Index: gpu/command_buffer/client/fenced_allocator.cc
|
| diff --git a/gpu/command_buffer/client/fenced_allocator.cc b/gpu/command_buffer/client/fenced_allocator.cc
|
| index 80038571be9fccf4e5274101e0959c33aa2586c9..d827d874f00ba5cb2d3918c4eb12c4975ab97608 100644
|
| --- a/gpu/command_buffer/client/fenced_allocator.cc
|
| +++ b/gpu/command_buffer/client/fenced_allocator.cc
|
| @@ -14,17 +14,15 @@ namespace gpu {
|
|
|
| namespace {
|
|
|
| -// Allocation alignment, must be a power of two.
|
| -const unsigned int kAllocAlignment = 16;
|
| -
|
| // Round down to the largest multiple of kAllocAlignment no greater than |size|.
|
| unsigned int RoundDown(unsigned int size) {
|
| - return size & ~(kAllocAlignment - 1);
|
| + return size & ~(FencedAllocator::kAllocAlignment - 1);
|
| }
|
|
|
| // Round up to the smallest multiple of kAllocAlignment no smaller than |size|.
|
| unsigned int RoundUp(unsigned int size) {
|
| - return (size + (kAllocAlignment - 1)) & ~(kAllocAlignment - 1);
|
| + return (size + (FencedAllocator::kAllocAlignment - 1)) &
|
| + ~(FencedAllocator::kAllocAlignment - 1);
|
| }
|
|
|
| } // namespace
|
|
|