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

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

Issue 566021: [GPU] GLES2 lost context recovery (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
« no previous file with comments | « gpu/command_buffer/client/gles2_lib.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This enum must stay in sync with NPDeviceContext3DError. 15 // This enum must stay in sync with NPDeviceContext3DError.
16 namespace error { 16 namespace error {
17 enum Error { 17 enum Error {
18 kNoError, 18 kNoError,
19 kInvalidSize, 19 kInvalidSize,
20 kOutOfBounds, 20 kOutOfBounds,
21 kUnknownCommand, 21 kUnknownCommand,
22 kInvalidArguments, 22 kInvalidArguments,
23 kLostContext,
23 kGenericError 24 kGenericError
24 }; 25 };
25 } 26 }
26 27
27 // Invalid shared memory Id, returned by RegisterSharedMemory in case of 28 // Invalid shared memory Id, returned by RegisterSharedMemory in case of
28 // failure. 29 // failure.
29 const int32 kInvalidSharedMemoryId = -1; 30 const int32 kInvalidSharedMemoryId = -1;
30 31
31 } // namespace gpu 32 } // namespace gpu
32 33
33 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_ 34 #endif // GPU_COMMAND_BUFFER_COMMON_CONSTANTS_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_lib.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698