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 contains Chromium-specific GLES2 extensions declarations. | 5 // This file contains Chromium-specific GLES2 extensions declarations. |
6 | 6 |
7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_ | 7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_ |
8 #define GPU_GLES2_GL2EXTCHROMIUM_H_ | 8 #define GPU_GLES2_GL2EXTCHROMIUM_H_ |
9 | 9 |
10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // TODO(reveman): Get official numbers for this constants. | 87 // TODO(reveman): Get official numbers for this constants. |
88 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF | 88 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF |
89 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE | 89 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE |
90 #endif | 90 #endif |
91 | 91 |
92 #ifndef GL_STREAM_READ | 92 #ifndef GL_STREAM_READ |
93 #define GL_STREAM_READ 0x88E1 | 93 #define GL_STREAM_READ 0x88E1 |
94 #endif | 94 #endif |
95 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */ | 95 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */ |
96 | 96 |
| 97 /* GL_CHROMIUM_gpu_memory_buffer */ |
| 98 #ifndef GL_CHROMIUM_gpu_memory_buffer |
| 99 #define GL_CHROMIUM_gpu_memory_buffer 1 |
| 100 |
| 101 #ifndef GL_IMAGE_BUFFER_CHROMIUM |
| 102 #define GL_IMAGE_BUFFER_CHROMIUM 0x78F0 |
| 103 #endif |
| 104 |
| 105 #ifndef GL_IMAGE_BUFFER_BINDING_CHROMIUM |
| 106 #define GL_IMAGE_BUFFER_BINDING_CHROMIUM 0x78F1 |
| 107 #endif |
| 108 |
| 109 #ifdef GL_GLEXT_PROTOTYPES |
| 110 GL_APICALL void GL_APIENTRY glCreateGpuMemoryBuffer2DCHROMIUM( |
| 111 GLuint image_id, GLsizei width, GLsizei height); |
| 112 #endif |
| 113 typedef void ( |
| 114 GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFER2DCHROMIUMPROC) ( |
| 115 GLuint image_id, GLsizei width, GLsizei height); |
| 116 #endif /* GL_CHROMIUM_gpu_memory_buffer */ |
| 117 |
97 /* GL_CHROMIUM_map_sub */ | 118 /* GL_CHROMIUM_map_sub */ |
98 #ifndef GL_CHROMIUM_map_sub | 119 #ifndef GL_CHROMIUM_map_sub |
99 #define GL_CHROMIUM_map_sub 1 | 120 #define GL_CHROMIUM_map_sub 1 |
100 | 121 |
101 #ifndef GL_READ_ONLY | 122 #ifndef GL_READ_ONLY |
102 #define GL_READ_ONLY 0x88B8 | 123 #define GL_READ_ONLY 0x88B8 |
103 #endif | 124 #endif |
104 | 125 |
105 #ifndef GL_WRITE_ONLY | 126 #ifndef GL_WRITE_ONLY |
106 #define GL_WRITE_ONLY 0x88B9 | 127 #define GL_WRITE_ONLY 0x88B9 |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 #endif | 598 #endif |
578 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) (); | 599 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC) (); |
579 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point); | 600 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC) (GLuint sync_point); |
580 #endif /* GL_CHROMIUM_sync_point */ | 601 #endif /* GL_CHROMIUM_sync_point */ |
581 | 602 |
582 #ifdef __cplusplus | 603 #ifdef __cplusplus |
583 } | 604 } |
584 #endif | 605 #endif |
585 | 606 |
586 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ | 607 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ |
OLD | NEW |