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

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

Issue 555020: Redesigned CommandBuffer and NPDevice3D interfaces (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace gpu { 10 namespace gpu {
11 11
12 typedef int32 CommandBufferOffset; 12 typedef int32 CommandBufferOffset;
13 const CommandBufferOffset kInvalidCommandBufferOffset = -1; 13 const CommandBufferOffset kInvalidCommandBufferOffset = -1;
14 14
15 // Status of the command buffer service. It does not process commands 15 // TODO(apatrick): rename to something more generic like just Error.
16 // (meaning: get will not change) unless in kParsing state.
17 namespace parser_status {
18 enum ParserStatus {
19 kNotConnected, // The service is not connected - initial state.
20 kNoBuffer, // The service is connected but no buffer was set.
21 kParsing, // The service is connected, and parsing commands from the
22 // buffer.
23 kParseError, // Parsing stopped because a parse error was found.
24 };
25 }
26
27 namespace parse_error { 16 namespace parse_error {
28 enum ParseError { 17 enum ParseError {
29 kParseNoError, 18 kParseNoError,
30 kParseInvalidSize, 19 kParseInvalidSize,
31 kParseOutOfBounds, 20 kParseOutOfBounds,
32 kParseUnknownCommand, 21 kParseUnknownCommand,
33 kParseInvalidArguments, 22 kParseInvalidArguments,
23 kParseGenericError,
34 }; 24 };
35 } 25 }
36 26
37 // Invalid shared memory Id, returned by RegisterSharedMemory in case of 27 // Invalid shared memory Id, returned by RegisterSharedMemory in case of
38 // failure. 28 // failure.
39 const int32 kInvalidSharedMemoryId = -1; 29 const int32 kInvalidSharedMemoryId = -1;
40 30
41 } // namespace gpu 31 } // namespace gpu
42 32
43 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ 33 #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/service/command_buffer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698