Index: gpu/command_buffer/client/shared_memory_limits.h |
diff --git a/gpu/command_buffer/client/shared_memory_limits.h b/gpu/command_buffer/client/shared_memory_limits.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e3bb5f708a217ef4675a912c40c60d12c28f7dc0 |
--- /dev/null |
+++ b/gpu/command_buffer/client/shared_memory_limits.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_ |
+#define GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_ |
+ |
+#include <stddef.h> |
+ |
+namespace gpu { |
+ |
+struct SharedMemoryLimits { |
+ size_t command_buffer_size = 1024 * 1024; |
danakj
2016/04/20 02:11:20
Turns out these sizes don't match what the code in
|
+ size_t start_transfer_buffer_size = 1 * 1024 * 1024; |
+ size_t min_transfer_buffer_size = 1 * 256 * 1024; |
+ size_t max_transfer_buffer_size = 16 * 1024 * 1024; |
+ |
+ static constexpr size_t kNoLimit = 0; |
+ size_t mapped_memory_reclaim_limit = kNoLimit; |
+}; |
+ |
+} // namespace gpu |
+ |
+#endif // GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_ |