OLD | NEW |
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 // This file defines the GLES2 command buffer commands. | 5 // This file defines the GLES2 command buffer commands. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
9 | 9 |
10 | 10 |
11 #include <KHR/khrplatform.h> | 11 #include <KHR/khrplatform.h> |
12 | 12 |
13 #include <string.h> | 13 #include <string.h> |
14 | 14 |
15 #include "base/safe_numerics.h" | 15 #include "base/safe_numerics.h" |
16 #include "../common/types.h" | 16 #include "gpu/command_buffer/common/bitfield_helpers.h" |
17 #include "../common/bitfield_helpers.h" | 17 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
18 #include "../common/cmd_buffer_common.h" | 18 #include "gpu/command_buffer/common/gles2_cmd_ids.h" |
19 #include "../common/gles2_cmd_ids.h" | 19 #include "gpu/command_buffer/common/types.h" |
20 | 20 |
21 // GL types are forward declared to avoid including the GL headers. The problem | 21 // GL types are forward declared to avoid including the GL headers. The problem |
22 // is determining which GL headers to include from code that is common to the | 22 // is determining which GL headers to include from code that is common to the |
23 // client and service sides (GLES2 or one of several GL implementations). | 23 // client and service sides (GLES2 or one of several GL implementations). |
24 typedef unsigned int GLenum; | 24 typedef unsigned int GLenum; |
25 typedef unsigned int GLbitfield; | 25 typedef unsigned int GLbitfield; |
26 typedef unsigned int GLuint; | 26 typedef unsigned int GLuint; |
27 typedef int GLint; | 27 typedef int GLint; |
28 typedef int GLsizei; | 28 typedef int GLsizei; |
29 typedef unsigned char GLboolean; | 29 typedef unsigned char GLboolean; |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 CommandHeader header; | 547 CommandHeader header; |
548 }; | 548 }; |
549 | 549 |
550 #pragma pack(pop) | 550 #pragma pack(pop) |
551 | 551 |
552 } // namespace cmd | 552 } // namespace cmd |
553 } // namespace gles2 | 553 } // namespace gles2 |
554 } // namespace gpu | 554 } // namespace gpu |
555 | 555 |
556 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 556 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |