| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #define GL_CHROMIUM_image 1 | 77 #define GL_CHROMIUM_image 1 |
| 78 | 78 |
| 79 typedef struct _ClientBuffer* ClientBuffer; | 79 typedef struct _ClientBuffer* ClientBuffer; |
| 80 | 80 |
| 81 #ifdef GL_GLEXT_PROTOTYPES | 81 #ifdef GL_GLEXT_PROTOTYPES |
| 82 GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM(ClientBuffer buffer, | 82 GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM(ClientBuffer buffer, |
| 83 GLsizei width, | 83 GLsizei width, |
| 84 GLsizei height, | 84 GLsizei height, |
| 85 GLenum internalformat); | 85 GLenum internalformat); |
| 86 GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id); | 86 GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id); |
| 87 GL_APICALL void GL_APIENTRY glBindTexImage2DCHROMIUM(GLenum target, | |
| 88 GLint imageId); | |
| 89 GL_APICALL void GL_APIENTRY | |
| 90 glBindTexImage2DWithInternalformatCHROMIUM(GLenum target, | |
| 91 GLenum internalformat, | |
| 92 GLint imageId); | |
| 93 GL_APICALL void GL_APIENTRY glReleaseTexImage2DCHROMIUM(GLenum target, | |
| 94 GLint imageId); | |
| 95 #endif | 87 #endif |
| 96 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC)( | 88 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC)( |
| 97 ClientBuffer buffer, | 89 ClientBuffer buffer, |
| 98 GLsizei width, | 90 GLsizei width, |
| 99 GLsizei height, | 91 GLsizei height, |
| 100 GLenum internalformat); | 92 GLenum internalformat); |
| 101 typedef void ( | 93 typedef void ( |
| 102 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC)(GLuint image_id); | 94 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC)(GLuint image_id); |
| 103 typedef void(GL_APIENTRYP PFNGLBINDTEXIMAGE2DCHROMIUMPROC)(GLenum target, | |
| 104 GLint imageId); | |
| 105 typedef void(GL_APIENTRYP PFNGLBINDTEXIMAGE2DWITHINTERNALFORMATCHROMIUMPROC)( | |
| 106 GLenum target, | |
| 107 GLenum internalformat, | |
| 108 GLint imageId); | |
| 109 typedef void(GL_APIENTRYP PFNGLRELEASETEXIMAGE2DCHROMIUMPROC)(GLenum target, | |
| 110 GLint imageId); | |
| 111 #endif /* GL_CHROMIUM_image */ | 95 #endif /* GL_CHROMIUM_image */ |
| 112 | 96 |
| 113 #ifndef GL_RGB_YCRCB_420_CHROMIUM | 97 #ifndef GL_RGB_YCRCB_420_CHROMIUM |
| 114 #define GL_RGB_YCRCB_420_CHROMIUM 0x78FA | 98 #define GL_RGB_YCRCB_420_CHROMIUM 0x78FA |
| 115 #endif | 99 #endif |
| 116 | 100 |
| 117 #ifndef GL_RGB_YCBCR_422_CHROMIUM | 101 #ifndef GL_RGB_YCBCR_422_CHROMIUM |
| 118 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB | 102 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB |
| 119 #endif | 103 #endif |
| 120 | 104 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 /* GL_CHROMIUM_get_error_query */ | 162 /* GL_CHROMIUM_get_error_query */ |
| 179 #ifndef GL_CHROMIUM_get_error_query | 163 #ifndef GL_CHROMIUM_get_error_query |
| 180 #define GL_CHROMIUM_get_error_query 1 | 164 #define GL_CHROMIUM_get_error_query 1 |
| 181 | 165 |
| 182 #ifndef GL_GET_ERROR_QUERY_CHROMIUM | 166 #ifndef GL_GET_ERROR_QUERY_CHROMIUM |
| 183 // TODO(gman): Get official numbers for this constants. | 167 // TODO(gman): Get official numbers for this constants. |
| 184 #define GL_GET_ERROR_QUERY_CHROMIUM 0x6003 | 168 #define GL_GET_ERROR_QUERY_CHROMIUM 0x6003 |
| 185 #endif | 169 #endif |
| 186 #endif /* GL_CHROMIUM_get_error_query */ | 170 #endif /* GL_CHROMIUM_get_error_query */ |
| 187 | 171 |
| 172 /* GL_CHROMIUM_texture_from_image */ |
| 173 #ifndef GL_CHROMIUM_texture_from_image |
| 174 #define GL_CHROMIUM_texture_from_image 1 |
| 175 #ifdef GL_GLEXT_PROTOTYPES |
| 176 GL_APICALL void GL_APIENTRY glBindTexImage2DCHROMIUM( |
| 177 GLenum target, GLint imageId); |
| 178 GL_APICALL void GL_APIENTRY glReleaseTexImage2DCHROMIUM( |
| 179 GLenum target, GLint imageId); |
| 180 #endif |
| 181 typedef void (GL_APIENTRYP PFNGLBINDTEXIMAGE2DCHROMIUMPROC) ( |
| 182 GLenum target, GLint imageId); |
| 183 typedef void (GL_APIENTRYP PFNGLRELEASETEXIMAGE2DCHROMIUMPROC) ( |
| 184 GLenum target, GLint imageId); |
| 185 #endif /* GL_CHROMIUM_texture_from_image */ |
| 186 |
| 188 /* GL_CHROMIUM_post_sub_buffer */ | 187 /* GL_CHROMIUM_post_sub_buffer */ |
| 189 #ifndef GL_CHROMIUM_post_sub_buffer | 188 #ifndef GL_CHROMIUM_post_sub_buffer |
| 190 #define GL_CHROMIUM_post_sub_buffer 1 | 189 #define GL_CHROMIUM_post_sub_buffer 1 |
| 191 #ifdef GL_GLEXT_PROTOTYPES | 190 #ifdef GL_GLEXT_PROTOTYPES |
| 192 GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM( | 191 GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM( |
| 193 GLint x, GLint y, GLint width, GLint height); | 192 GLint x, GLint y, GLint width, GLint height); |
| 194 #endif | 193 #endif |
| 195 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUMPROC) ( | 194 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUMPROC) ( |
| 196 GLint x, GLint y, GLint width, GLint height); | 195 GLint x, GLint y, GLint width, GLint height); |
| 197 #endif /* GL_CHROMIUM_post_sub_buffer */ | 196 #endif /* GL_CHROMIUM_post_sub_buffer */ |
| (...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1197 #ifndef GL_ARB_occlusion_query | 1196 #ifndef GL_ARB_occlusion_query |
| 1198 #define GL_ARB_occlusion_query 1 | 1197 #define GL_ARB_occlusion_query 1 |
| 1199 #define GL_SAMPLES_PASSED_ARB 0x8914 | 1198 #define GL_SAMPLES_PASSED_ARB 0x8914 |
| 1200 #endif /* GL_ARB_occlusion_query */ | 1199 #endif /* GL_ARB_occlusion_query */ |
| 1201 | 1200 |
| 1202 #ifdef __cplusplus | 1201 #ifdef __cplusplus |
| 1203 } | 1202 } |
| 1204 #endif | 1203 #endif |
| 1205 | 1204 |
| 1206 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ | 1205 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ |
| OLD | NEW |