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

Side by Side 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: rebase 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
no sievers 2016/04/19 20:24:13 nit: drop '(c)'
danakj 2016/04/20 00:01:53 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_
7
8 #include <stddef.h>
9
10 namespace gpu {
11
12 struct SharedMemoryLimits {
13 size_t command_buffer_size = 1024 * 1024;
14 size_t start_transfer_buffer_size = 1 * 1024 * 1024;
15 size_t min_transfer_buffer_size = 1 * 256 * 1024;
16 size_t max_transfer_buffer_size = 16 * 1024 * 1024;
17
18 static constexpr size_t kNoLimit = 0;
19 size_t mapped_memory_reclaim_limit = kNoLimit;
20 };
21
22 } // namespace gpu
23
24 #endif // GPU_COMMAND_BUFFER_CLIENT_SHARED_MEMORY_LIMITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698