Index: gpu/command_buffer/client/mapped_memory.h |
diff --git a/gpu/command_buffer/client/mapped_memory.h b/gpu/command_buffer/client/mapped_memory.h |
index 789e69cf7f89d64fe052d2ca16be2875a93cd626..10ac639929f3664a15d425c9b8fb82f46d331e1a 100644 |
--- a/gpu/command_buffer/client/mapped_memory.h |
+++ b/gpu/command_buffer/client/mapped_memory.h |
@@ -135,6 +135,7 @@ class GPU_EXPORT MappedMemoryManager { |
} |
void set_chunk_size_multiple(unsigned int multiple) { |
+ DCHECK(multiple % FencedAllocator::kAllocAlignment == 0); |
chunk_size_multiple_ = multiple; |
} |
@@ -201,4 +202,3 @@ class GPU_EXPORT MappedMemoryManager { |
} // namespace gpu |
#endif // GPU_COMMAND_BUFFER_CLIENT_MAPPED_MEMORY_H_ |
- |