| Index: gpu/command_buffer/common/id_allocator.cc
|
| diff --git a/gpu/command_buffer/common/id_allocator.cc b/gpu/command_buffer/common/id_allocator.cc
|
| index eccb4681df72bced7aa00d1ac01d59931b0429d1..9f58695f4ee3706d515c304e5bd64675cbabec7c 100644
|
| --- a/gpu/command_buffer/common/id_allocator.cc
|
| +++ b/gpu/command_buffer/common/id_allocator.cc
|
| @@ -12,7 +12,7 @@
|
| namespace gpu {
|
|
|
| IdAllocator::IdAllocator() {
|
| - COMPILE_ASSERT(kInvalidResource == 0u, invalid_resource_is_not_zero);
|
| + static_assert(kInvalidResource == 0u, "invalid_resource_is_not_zero");
|
| // Simplify the code by making sure that lower_bound(id) never
|
| // returns the beginning of the map, if id is valid (eg !=
|
| // kInvalidResource).
|
| @@ -143,7 +143,7 @@ void IdAllocator::FreeID(ResourceId id) {
|
| }
|
|
|
| void IdAllocator::FreeIDRange(ResourceId first_id, uint32 range) {
|
| - COMPILE_ASSERT(kInvalidResource == 0u, invalid_resource_is_not_zero);
|
| + static_assert(kInvalidResource == 0u, "invalid_resource_is_not_zero");
|
|
|
| if (range == 0u || (first_id == 0u && range == 1u)) {
|
| return;
|
|
|