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

Side by Side Diff: gpu/command_buffer/common/constants.h

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NamespaceID and CommandBufferID for CommandBufferLocal Created 5 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
6 #define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ 6 #define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Invalid shared memory Id, returned by RegisterSharedMemory in case of 59 // Invalid shared memory Id, returned by RegisterSharedMemory in case of
60 // failure. 60 // failure.
61 const int32_t kInvalidSharedMemoryId = -1; 61 const int32_t kInvalidSharedMemoryId = -1;
62 62
63 // Common Command Buffer shared memory transfer buffer ID. 63 // Common Command Buffer shared memory transfer buffer ID.
64 const int32_t kCommandBufferSharedMemoryId = 4; 64 const int32_t kCommandBufferSharedMemoryId = 4;
65 65
66 // The size to set for the program cache. 66 // The size to set for the program cache.
67 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024; 67 const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024;
68 68
69 // Namespace used to separate various command buffer types.
70 enum CommandBufferNamespace {
71 kCommandBufferNamespace_Invalid = -1,
dcheng 2015/09/17 17:08:18 Chrome enum naming convention is to NAME_LIKE_THIS
David Yen 2015/09/17 17:26:21 Done.
72
73 kCommandBufferNamespace_GpuIO,
74 kCommandBufferNamespace_InProcess,
75 kCommandBufferNamespace_Mojo,
76
77 NUM_COMMAND_BUFFER_NAMESPACES
dcheng 2015/09/17 17:08:18 Is this actually used for anything?
David Yen 2015/09/17 17:26:21 The background of this patch is that it was moved
78 };
79
80
69 } // namespace gpu 81 } // namespace gpu
70 82
71 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ 83 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698