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

Unified 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: Moved functions to GpuControl 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/constants.h
diff --git a/gpu/command_buffer/common/constants.h b/gpu/command_buffer/common/constants.h
index d06836c0d71ea9e5a5c871db8ef79f75ea424eca..0b312eded1eec448a9104018849fc7c6ae435f50 100644
--- a/gpu/command_buffer/common/constants.h
+++ b/gpu/command_buffer/common/constants.h
@@ -66,6 +66,18 @@ const int32_t kCommandBufferSharedMemoryId = 4;
// The size to set for the program cache.
const size_t kDefaultMaxProgramCacheMemoryBytes = 6 * 1024 * 1024;
+// Namespace used to separate various command buffer types.
+enum CommandBufferNamespace {
+ kCommandBufferNamespace_Invalid = -1,
+
+ kCommandBufferNamespace_GpuIO,
+ kCommandBufferNamespace_InProcess,
+ kCommandBufferNamespace_Mojo,
+
+ NUM_COMMAND_BUFFER_NAMESPACES
+};
+
+
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698