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

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

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 12 matching lines...) Expand all
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 32
33 #ifndef O3D_COMMAND_BUFFER_COMMON_CROSS_CONSTANTS_H_ 33 #ifndef GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
34 #define O3D_COMMAND_BUFFER_COMMON_CROSS_CONSTANTS_H_ 34 #define GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
35 35
36 #include "base/basictypes.h" 36 #include "base/basictypes.h"
37 37
38 namespace command_buffer { 38 namespace gpu {
39 39
40 typedef int32 CommandBufferOffset; 40 typedef int32 CommandBufferOffset;
41 const CommandBufferOffset kInvalidCommandBufferOffset = -1; 41 const CommandBufferOffset kInvalidCommandBufferOffset = -1;
42 42
43 // Status of the command buffer service. It does not process commands 43 // Status of the command buffer service. It does not process commands
44 // (meaning: get will not change) unless in kParsing state. 44 // (meaning: get will not change) unless in kParsing state.
45 namespace parser_status { 45 namespace parser_status {
46 enum ParserStatus { 46 enum ParserStatus {
47 kNotConnected, // The service is not connected - initial state. 47 kNotConnected, // The service is not connected - initial state.
48 kNoBuffer, // The service is connected but no buffer was set. 48 kNoBuffer, // The service is connected but no buffer was set.
(...skipping 10 matching lines...) Expand all
59 kParseOutOfBounds, 59 kParseOutOfBounds,
60 kParseUnknownCommand, 60 kParseUnknownCommand,
61 kParseInvalidArguments, 61 kParseInvalidArguments,
62 }; 62 };
63 } 63 }
64 64
65 // Invalid shared memory Id, returned by RegisterSharedMemory in case of 65 // Invalid shared memory Id, returned by RegisterSharedMemory in case of
66 // failure. 66 // failure.
67 const int32 kInvalidSharedMemoryId = -1; 67 const int32 kInvalidSharedMemoryId = -1;
68 68
69 } // namespace command_buffer 69 } // namespace gpu
70 70
71 #endif // O3D_COMMAND_BUFFER_COMMON_CROSS_CONSTANTS_H_ 71 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/command_buffer_mock.h ('k') | gpu/command_buffer/common/gles2_cmd_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698