Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: gpu/command_buffer/client/shared_memory_limits.h

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/mapped_memory.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8066c42348e110a2e440253af29f56da8dc08c17
--- /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 {
+ int32_t command_buffer_size = 1024 * 1024;
+ uint32_t start_transfer_buffer_size = 1 * 1024 * 1024;
+ uint32_t min_transfer_buffer_size = 1 * 256 * 1024;
+ uint32_t max_transfer_buffer_size = 16 * 1024 * 1024;
+
+ static constexpr uint32_t kNoLimit = 0;
+ uint32_t mapped_memory_reclaim_limit = kNoLimit;
+};
+
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_
« no previous file with comments | « gpu/command_buffer/client/mapped_memory.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698