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

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

Issue 1394543003: Added SyncToken command buffer trait to help with IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
11 // From glextchromium.h.
12 #ifndef GL_SYNC_TOKEN_SIZE_CHROMIUM
13 #define GL_SYNC_TOKEN_SIZE_CHROMIUM 24
14 #endif
15
16 namespace gpu { 11 namespace gpu {
17 12
18 typedef int32_t CommandBufferOffset; 13 typedef int32_t CommandBufferOffset;
19 const CommandBufferOffset kInvalidCommandBufferOffset = -1; 14 const CommandBufferOffset kInvalidCommandBufferOffset = -1;
20 15
21 // This enum must stay in sync with NPDeviceContext3DError. 16 // This enum must stay in sync with NPDeviceContext3DError.
22 namespace error { 17 namespace error {
23 enum Error { 18 enum Error {
24 kNoError, 19 kNoError,
25 kInvalidSize, 20 kInvalidSize,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 IN_PROCESS, 74 IN_PROCESS,
80 MOJO, 75 MOJO,
81 76
82 NUM_COMMAND_BUFFER_NAMESPACES 77 NUM_COMMAND_BUFFER_NAMESPACES
83 }; 78 };
84 79
85 80
86 } // namespace gpu 81 } // namespace gpu
87 82
88 #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