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

Side by Side Diff: gpu/command_buffer/common/resource.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
« no previous file with comments | « gpu/command_buffer/common/logging.h ('k') | gpu/command_buffer/common/resource.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 /* 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 15 matching lines...) Expand all
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 // This file contains definitions for resource flags, enums, and helper 33 // This file contains definitions for resource flags, enums, and helper
34 // functions. 34 // functions.
35 35
36 #ifndef GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ 36 #ifndef GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_
37 #define GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ 37 #define GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_
38 38
39 #include <algorithm> 39 #include <algorithm>
40 #include "base/basictypes.h" 40 #include "base/basictypes.h"
41 #include "base/scoped_ptr.h" 41 #include "base/scoped_ptr.h"
42 #include "gpu/command_buffer/common/types.h" 42 #include "gpu/command_buffer/common/types.h"
43 #include "gpu/command_buffer/common/logging.h" 43 #include "gpu/command_buffer/common/logging.h"
44 44
45 namespace command_buffer { 45 namespace gpu {
46 46
47 // A resource ID, key to the resource maps. 47 // A resource ID, key to the resource maps.
48 typedef uint32 ResourceId; 48 typedef uint32 ResourceId;
49 // Invalid resource ID. 49 // Invalid resource ID.
50 static const ResourceId kInvalidResource = 0xffffffffU; 50 static const ResourceId kInvalidResource = 0xffffffffU;
51 51
52 namespace vertex_buffer { 52 namespace vertex_buffer {
53 // Vertex buffer flags. 53 // Vertex buffer flags.
54 enum Flags { 54 enum Flags {
55 kNone = 0x00, 55 kNone = 0x00,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 }; 217 };
218 218
219 enum FilteringMode { 219 enum FilteringMode {
220 kNone, 220 kNone,
221 kPoint, 221 kPoint,
222 kLinear, 222 kLinear,
223 kNumFilteringMode 223 kNumFilteringMode
224 }; 224 };
225 } // namespace sampler 225 } // namespace sampler
226 226
227 } // namespace command_buffer 227 } // namespace gpu
228 228
229 #endif // GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ 229 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/logging.h ('k') | gpu/command_buffer/common/resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698