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 <stdint.h> | 13 #include <stdint.h> |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include "base/atomicops.h" | 16 #include "base/atomicops.h" |
| 17 #include "base/logging.h" |
17 #include "base/macros.h" | 18 #include "base/macros.h" |
18 #include "gpu/command_buffer/common/bitfield_helpers.h" | 19 #include "gpu/command_buffer/common/bitfield_helpers.h" |
19 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 20 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
20 #include "gpu/command_buffer/common/gles2_cmd_ids.h" | 21 #include "gpu/command_buffer/common/gles2_cmd_ids.h" |
21 | 22 |
22 // GL types are forward declared to avoid including the GL headers. The problem | 23 // GL types are forward declared to avoid including the GL headers. The problem |
23 // is determining which GL headers to include from code that is common to the | 24 // is determining which GL headers to include from code that is common to the |
24 // client and service sides (GLES2 or one of several GL implementations). | 25 // client and service sides (GLES2 or one of several GL implementations). |
25 typedef unsigned int GLenum; | 26 typedef unsigned int GLenum; |
26 typedef unsigned int GLbitfield; | 27 typedef unsigned int GLbitfield; |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 CommandHeader header; | 461 CommandHeader header; |
461 }; | 462 }; |
462 | 463 |
463 #pragma pack(pop) | 464 #pragma pack(pop) |
464 | 465 |
465 } // namespace cmd | 466 } // namespace cmd |
466 } // namespace gles2 | 467 } // namespace gles2 |
467 } // namespace gpu | 468 } // namespace gpu |
468 | 469 |
469 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 470 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |