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 |
(...skipping 30 matching lines...) Expand all Loading... |
41 typedef float GLclampf; | 41 typedef float GLclampf; |
42 typedef double GLdouble; | 42 typedef double GLdouble; |
43 typedef double GLclampd; | 43 typedef double GLclampd; |
44 typedef void GLvoid; | 44 typedef void GLvoid; |
45 typedef khronos_intptr_t GLintptr; | 45 typedef khronos_intptr_t GLintptr; |
46 typedef khronos_ssize_t GLsizeiptr; | 46 typedef khronos_ssize_t GLsizeiptr; |
47 typedef struct __GLsync *GLsync; | 47 typedef struct __GLsync *GLsync; |
48 typedef int64_t GLint64; | 48 typedef int64_t GLint64; |
49 typedef uint64_t GLuint64; | 49 typedef uint64_t GLuint64; |
50 | 50 |
| 51 struct GLCALayerFilterEffect { |
| 52 GLint type; |
| 53 GLfloat amount; |
| 54 GLint drop_shadow_offset_x; |
| 55 GLint drop_shadow_offset_y; |
| 56 GLuint drop_shadow_color; |
| 57 }; |
| 58 |
51 namespace gpu { | 59 namespace gpu { |
52 namespace gles2 { | 60 namespace gles2 { |
53 | 61 |
54 // Command buffer is GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT byte aligned. | 62 // Command buffer is GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT byte aligned. |
55 #pragma pack(push, 4) | 63 #pragma pack(push, 4) |
56 static_assert(GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT == 4, | 64 static_assert(GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT == 4, |
57 "pragma pack alignment must be equal to " | 65 "pragma pack alignment must be equal to " |
58 "GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT"); | 66 "GPU_COMMAND_BUFFER_ENTRY_ALIGNMENT"); |
59 | 67 |
60 namespace id_namespaces { | 68 namespace id_namespaces { |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); | 382 "offset of CreateAndConsumeTextureCHROMIUMImmediate.client_id should be 8"); |
375 | 383 |
376 | 384 |
377 #pragma pack(pop) | 385 #pragma pack(pop) |
378 | 386 |
379 } // namespace cmd | 387 } // namespace cmd |
380 } // namespace gles2 | 388 } // namespace gles2 |
381 } // namespace gpu | 389 } // namespace gpu |
382 | 390 |
383 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ | 391 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ |
OLD | NEW |