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
3 // found in the LICENSE file.
5 // This file contains Chromium-specific GLES2 extensions declarations.
7 #ifndef GPU_GLES2_GL2EXTCHROMIUM_H_
8 #define GPU_GLES2_GL2EXTCHROMIUM_H_
10 #include <GLES2/gl2.h>
11 #include <GLES2/gl2ext.h>
17 /* GL_CHROMIUM_iosurface */
18 #ifndef GL_CHROMIUM_iosurface
19 #define GL_CHROMIUM_iosurface 1
20 #ifdef GL_GLEXT_PROTOTYPES
21 GL_APICALL
void GL_APIENTRY
glTexImageIOSurface2DCHROMIUM(
22 GLenum target
, GLsizei width
, GLsizei height
, GLuint ioSurfaceId
,
25 typedef void (GL_APIENTRYP PFNGLTEXIMAGEIOSURFACE2DCHROMIUMPROC
) (
26 GLenum target
, GLsizei width
, GLsizei height
, GLuint ioSurfaceId
,
28 #endif /* GL_CHROMIUM_iosurface */
30 /* GL_CHROMIUM_gpu_memory_manager */
31 #ifndef GL_CHROMIUM_gpu_memory_manager
32 #define GL_CHROMIUM_gpu_memory_manager 1
34 #ifndef GL_TEXTURE_POOL_UNMANAGED_CHROMIUM
35 #define GL_TEXTURE_POOL_UNMANAGED_CHROMIUM 0x6002
38 #ifndef GL_TEXTURE_POOL_CHROMIUM
39 #define GL_TEXTURE_POOL_CHROMIUM 0x6000
42 #ifndef GL_TEXTURE_POOL_MANAGED_CHROMIUM
43 #define GL_TEXTURE_POOL_MANAGED_CHROMIUM 0x6001
45 #endif /* GL_CHROMIUM_gpu_memory_manager */
47 /* GL_CHROMIUM_texture_mailbox */
48 #ifndef GL_CHROMIUM_texture_mailbox
49 #define GL_CHROMIUM_texture_mailbox 1
51 #ifndef GL_MAILBOX_SIZE_CHROMIUM
52 #define GL_MAILBOX_SIZE_CHROMIUM 64
54 #ifdef GL_GLEXT_PROTOTYPES
55 GL_APICALL
void GL_APIENTRY
glGenMailboxCHROMIUM(GLbyte
* mailbox
);
56 GL_APICALL
void GL_APIENTRY
glProduceTextureCHROMIUM(
57 GLenum target
, const GLbyte
* mailbox
);
58 GL_APICALL
void GL_APIENTRY
glProduceTextureDirectCHROMIUM(
59 GLuint texture
, GLenum target
, const GLbyte
* mailbox
);
60 GL_APICALL
void GL_APIENTRY
glConsumeTextureCHROMIUM(
61 GLenum target
, const GLbyte
* mailbox
);
62 GL_APICALL GLuint GL_APIENTRY
glCreateAndConsumeTextureCHROMIUM(
63 GLenum target
, const GLbyte
* mailbox
);
65 typedef void (GL_APIENTRYP PFNGLGENMAILBOXCHROMIUMPROC
) (GLbyte
* mailbox
);
66 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTURECHROMIUMPROC
) (
67 GLenum target
, const GLbyte
* mailbox
);
68 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTUREDIRECTCHROMIUMPROC
) (
69 GLuint texture
, GLenum target
, const GLbyte
* mailbox
);
70 typedef void (GL_APIENTRYP PFNGLCONSUMETEXTURECHROMIUMPROC
) (
71 GLenum target
, const GLbyte
* mailbox
);
72 typedef GLuint (GL_APIENTRYP PFNGLCREATEANDCONSUMETEXTURECHROMIUMPROC
) (
73 GLenum target
, const GLbyte
* mailbox
);
74 #endif /* GL_CHROMIUM_texture_mailbox */
76 /* GL_CHROMIUM_pixel_transfer_buffer_object */
77 #ifndef GL_CHROMIUM_pixel_transfer_buffer_object
78 #define GL_CHROMIUM_pixel_transfer_buffer_object 1
80 #ifndef GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM
81 // TODO(reveman): Get official numbers for this constants.
82 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC
83 #define GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED
85 #ifdef GL_GLEXT_PROTOTYPES
86 GL_APICALL
void* GL_APIENTRY
glMapBufferCHROMIUM(GLuint target
,GLenum access
);
87 GL_APICALL GLboolean GL_APIENTRY
glUnmapBufferCHROMIUM(GLuint target
);
89 typedef void* (GL_APIENTRY PFNGLMAPBUFFERCHROMIUM
) (
90 GLuint target
,GLenum access
);
91 typedef GLboolean (GL_APIENTRY PFNGLUNMAPBUFFERCHROMIUM
) (GLuint target
);
92 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */
94 #ifndef GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM
95 // TODO(reveman): Get official numbers for this constants.
96 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EF
97 #define GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM 0x78EE
100 #ifndef GL_STREAM_READ
101 #define GL_STREAM_READ 0x88E1
103 #endif /* GL_CHROMIUM_pixel_transfer_buffer_object */
105 /* GL_CHROMIUM_image */
106 #ifndef GL_CHROMIUM_image
107 #define GL_CHROMIUM_image 1
109 typedef struct _ClientBuffer
* ClientBuffer
;
111 #ifdef GL_GLEXT_PROTOTYPES
112 GL_APICALL GLuint GL_APIENTRY
glCreateImageCHROMIUM(ClientBuffer buffer
,
115 GLenum internalformat
);
116 GL_APICALL
void GL_APIENTRY
glDestroyImageCHROMIUM(GLuint image_id
);
118 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC
)(
122 GLenum internalformat
);
124 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC
)(GLuint image_id
);
125 #endif /* GL_CHROMIUM_image */
127 /* GL_CHROMIUM_gpu_memory_buffer_image */
128 #ifndef GL_CHROMIUM_gpu_memory_buffer_image
129 #define GL_CHROMIUM_gpu_memory_buffer_image 1
131 #ifndef GL_MAP_CHROMIUM
132 #define GL_MAP_CHROMIUM 0x78F1
135 #ifndef GL_SCANOUT_CHROMIUM
136 #define GL_SCANOUT_CHROMIUM 0x78F2
139 #ifndef GL_RGB_YUV_420_CHROMIUM
140 #define GL_RGB_YUV_420_CHROMIUM 0x78FA
143 #ifndef GL_RGB_YCBCR_422_CHROMIUM
144 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB
147 #ifdef GL_GLEXT_PROTOTYPES
148 GL_APICALL GLuint GL_APIENTRY
glCreateGpuMemoryBufferImageCHROMIUM(
151 GLenum internalformat
,
154 typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC
)(
157 GLenum internalformat
,
159 #endif /* GL_CHROMIUM_gpu_memory_buffer_image */
161 /* GL_CHROMIUM_map_sub */
162 #ifndef GL_CHROMIUM_map_sub
163 #define GL_CHROMIUM_map_sub 1
166 #define GL_READ_ONLY 0x88B8
169 #ifndef GL_WRITE_ONLY
170 #define GL_WRITE_ONLY 0x88B9
172 #ifdef GL_GLEXT_PROTOTYPES
173 GL_APICALL
void* GL_APIENTRY
glMapBufferSubDataCHROMIUM(
174 GLuint target
, GLintptr offset
, GLsizeiptr size
, GLenum access
);
175 GL_APICALL
void GL_APIENTRY
glUnmapBufferSubDataCHROMIUM(const void* mem
);
176 GL_APICALL
void* GL_APIENTRY
glMapTexSubImage2DCHROMIUM(
177 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
178 GLsizei height
, GLenum format
, GLenum type
, GLenum access
);
179 GL_APICALL
void GL_APIENTRY
glUnmapTexSubImage2DCHROMIUM(const void* mem
);
181 typedef void* (GL_APIENTRYP PFNGLMAPBUFFERSUBDATACHROMIUMPROC
) (
182 GLuint target
, GLintptr offset
, GLsizeiptr size
, GLenum access
);
184 GL_APIENTRYP PFNGLUNMAPBUFFERSUBDATACHROMIUMPROC
) (const void* mem
);
185 typedef void* (GL_APIENTRYP PFNGLMAPTEXSUBIMAGE2DCHROMIUMPROC
) (
186 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
187 GLsizei height
, GLenum format
, GLenum type
, GLenum access
);
189 GL_APIENTRYP PFNGLUNMAPTEXSUBIMAGE2DCHROMIUMPROC
) (const void* mem
);
190 #endif /* GL_CHROMIUM_map_sub */
192 /* GL_CHROMIUM_request_extension */
193 #ifndef GL_CHROMIUM_request_extension
194 #define GL_CHROMIUM_request_extension 1
195 #ifdef GL_GLEXT_PROTOTYPES
196 GL_APICALL
const GLchar
* GL_APIENTRY
glGetRequestableExtensionsCHROMIUM();
197 GL_APICALL
void GL_APIENTRY
glRequestExtensionCHROMIUM(const char* extension
);
199 typedef const GLchar
* (GL_APIENTRYP PFNGLGETREQUESTABLEEXTENSIONSCHROMIUMPROC
) (
201 typedef void (GL_APIENTRYP PFNGLREQUESTEXTENSIONCHROMIUMPROC
) (
202 const char* extension
);
203 #endif /* GL_CHROMIUM_request_extension */
205 /* GL_CHROMIUM_get_error_query */
206 #ifndef GL_CHROMIUM_get_error_query
207 #define GL_CHROMIUM_get_error_query 1
209 #ifndef GL_GET_ERROR_QUERY_CHROMIUM
210 // TODO(gman): Get official numbers for this constants.
211 #define GL_GET_ERROR_QUERY_CHROMIUM 0x6003
213 #endif /* GL_CHROMIUM_get_error_query */
215 /* GL_CHROMIUM_texture_from_image */
216 #ifndef GL_CHROMIUM_texture_from_image
217 #define GL_CHROMIUM_texture_from_image 1
218 #ifdef GL_GLEXT_PROTOTYPES
219 GL_APICALL
void GL_APIENTRY
glBindTexImage2DCHROMIUM(
220 GLenum target
, GLint imageId
);
221 GL_APICALL
void GL_APIENTRY
glReleaseTexImage2DCHROMIUM(
222 GLenum target
, GLint imageId
);
224 typedef void (GL_APIENTRYP PFNGLBINDTEXIMAGE2DCHROMIUMPROC
) (
225 GLenum target
, GLint imageId
);
226 typedef void (GL_APIENTRYP PFNGLRELEASETEXIMAGE2DCHROMIUMPROC
) (
227 GLenum target
, GLint imageId
);
228 #endif /* GL_CHROMIUM_texture_from_image */
230 /* GL_CHROMIUM_rate_limit_offscreen_context */
231 #ifndef GL_CHROMIUM_rate_limit_offscreen_context
232 #define GL_CHROMIUM_rate_limit_offscreen_context 1
233 #ifdef GL_GLEXT_PROTOTYPES
234 GL_APICALL
void GL_APIENTRY
glRateLimitOffscreenContextCHROMIUM();
236 typedef void (GL_APIENTRYP PFNGLRATELIMITOFFSCREENCONTEXTCHROMIUMPROC
) ();
237 #endif /* GL_CHROMIUM_rate_limit_offscreen_context */
239 /* GL_CHROMIUM_post_sub_buffer */
240 #ifndef GL_CHROMIUM_post_sub_buffer
241 #define GL_CHROMIUM_post_sub_buffer 1
242 #ifdef GL_GLEXT_PROTOTYPES
243 GL_APICALL
void GL_APIENTRY
glPostSubBufferCHROMIUM(
244 GLint x
, GLint y
, GLint width
, GLint height
);
246 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUMPROC
) (
247 GLint x
, GLint y
, GLint width
, GLint height
);
248 #endif /* GL_CHROMIUM_post_sub_buffer */
250 /* GL_CHROMIUM_bind_uniform_location */
251 #ifndef GL_CHROMIUM_bind_uniform_location
252 #define GL_CHROMIUM_bind_uniform_location 1
253 #ifdef GL_GLEXT_PROTOTYPES
254 GL_APICALL
void GL_APIENTRY
glBindUniformLocationCHROMIUM(
255 GLuint program
, GLint location
, const char* name
);
257 typedef void (GL_APIENTRYP PFNGLBINDUNIFORMLOCATIONCHROMIUMPROC
) (
258 GLuint program
, GLint location
, const char* name
);
259 #endif /* GL_CHROMIUM_bind_uniform_location */
261 /* GL_CHROMIUM_command_buffer_query */
262 #ifndef GL_CHROMIUM_command_buffer_query
263 #define GL_CHROMIUM_command_buffer_query 1
265 #ifndef GL_COMMANDS_ISSUED_CHROMIUM
266 // TODO(gman): Get official numbers for this constants.
267 #define GL_COMMANDS_ISSUED_CHROMIUM 0x6004
269 #endif /* GL_CHROMIUM_command_buffer_query */
271 /* GL_CHROMIUM_framebuffer_multisample */
272 #ifndef GL_CHROMIUM_framebuffer_multisample
273 #define GL_CHROMIUM_framebuffer_multisample 1
275 #ifdef GL_GLEXT_PROTOTYPES
276 GL_APICALL
void GL_APIENTRY
glRenderbufferStorageMultisampleCHROMIUM (GLenum
, GLsizei
, GLenum
, GLsizei
, GLsizei
);
277 GL_APICALL
void GL_APIENTRY
glBlitFramebufferCHROMIUM (GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
);
279 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLECHROMIUMPROC
) (GLenum target
, GLsizei samples
, GLenum internalformat
, GLsizei width
, GLsizei height
);
280 typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERCHROMIUMPROC
) (GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
);
282 #ifndef GL_FRAMEBUFFER_BINDING_EXT
283 #define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING
286 #ifndef GL_DRAW_FRAMEBUFFER_BINDING_EXT
287 #define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_DRAW_FRAMEBUFFER_BINDING
290 #ifndef GL_RENDERBUFFER_BINDING_EXT
291 #define GL_RENDERBUFFER_BINDING_EXT GL_RENDERBUFFER_BINDING
294 #ifndef GL_RENDERBUFFER_SAMPLES
295 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
298 #ifndef GL_READ_FRAMEBUFFER_EXT
299 #define GL_READ_FRAMEBUFFER_EXT GL_READ_FRAMEBUFFER
302 #ifndef GL_RENDERBUFFER_SAMPLES_EXT
303 #define GL_RENDERBUFFER_SAMPLES_EXT GL_RENDERBUFFER_SAMPLES
306 #ifndef GL_RENDERBUFFER_BINDING
307 #define GL_RENDERBUFFER_BINDING 0x8CA7
310 #ifndef GL_READ_FRAMEBUFFER_BINDING
311 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
314 #ifndef GL_MAX_SAMPLES
315 #define GL_MAX_SAMPLES 0x8D57
318 #ifndef GL_READ_FRAMEBUFFER_BINDING_EXT
319 #define GL_READ_FRAMEBUFFER_BINDING_EXT GL_READ_FRAMEBUFFER_BINDING
322 #ifndef GL_DRAW_FRAMEBUFFER_BINDING
323 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
326 #ifndef GL_MAX_SAMPLES_EXT
327 #define GL_MAX_SAMPLES_EXT GL_MAX_SAMPLES
330 #ifndef GL_DRAW_FRAMEBUFFER
331 #define GL_DRAW_FRAMEBUFFER 0x8CA9
334 #ifndef GL_READ_FRAMEBUFFER
335 #define GL_READ_FRAMEBUFFER 0x8CA8
338 #ifndef GL_DRAW_FRAMEBUFFER_EXT
339 #define GL_DRAW_FRAMEBUFFER_EXT GL_DRAW_FRAMEBUFFER
342 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE
343 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
346 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT
347 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE // NOLINT
350 #ifndef GL_FRAMEBUFFER_BINDING
351 #define GL_FRAMEBUFFER_BINDING 0x8CA6
353 #endif /* GL_CHROMIUM_framebuffer_multisample */
355 /* GL_CHROMIUM_texture_compression_dxt3 */
356 #ifndef GL_CHROMIUM_texture_compression_dxt3
357 #define GL_CHROMIUM_texture_compression_dxt3 1
359 #ifndef GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
360 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
362 #endif /* GL_CHROMIUM_texture_compression_dxt3 */
364 /* GL_CHROMIUM_texture_compression_dxt5 */
365 #ifndef GL_CHROMIUM_texture_compression_dxt5
366 #define GL_CHROMIUM_texture_compression_dxt5 1
368 #ifndef GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
369 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
371 #endif /* GL_CHROMIUM_texture_compression_dxt5 */
373 /* GL_CHROMIUM_async_pixel_transfers */
374 #ifndef GL_CHROMIUM_async_pixel_transfers
375 #define GL_CHROMIUM_async_pixel_transfers 1
377 #ifndef GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM
378 #define GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM 0x6005
380 #ifndef GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM
381 #define GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM 0x6006
383 #endif /* GL_CHROMIUM_async_pixel_transfers */
385 #ifndef GL_BIND_GENERATES_RESOURCE_CHROMIUM
386 #define GL_BIND_GENERATES_RESOURCE_CHROMIUM 0x9244
389 /* GL_CHROMIUM_copy_texture */
390 #ifndef GL_CHROMIUM_copy_texture
391 #define GL_CHROMIUM_copy_texture 1
393 #ifndef GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM
394 #define GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM 0x9243
397 #ifdef GL_GLEXT_PROTOTYPES
398 GL_APICALL
void GL_APIENTRY
glCopyTextureCHROMIUM(
402 GLint internalformat
,
404 GLboolean unpack_flip_y
,
405 GLboolean unpack_premultiply_alpha
,
406 GLboolean unpack_unmultiply_alpha
);
408 GL_APICALL
void GL_APIENTRY
glCopySubTextureCHROMIUM(
418 GLboolean unpack_flip_y
,
419 GLboolean unpack_premultiply_alpha
,
420 GLboolean unpack_unmultiply_alpha
);
422 typedef void(GL_APIENTRYP PFNGLCOPYTEXTURECHROMIUMPROC
)(
426 GLint internalformat
,
428 GLboolean unpack_flip_y
,
429 GLboolean unpack_premultiply_alpha
,
430 GLboolean unpack_unmultiply_alpha
);
432 typedef void(GL_APIENTRYP PFNGLCOPYSUBTEXTURECHROMIUMPROC
)(
442 GLboolean unpack_flip_y
,
443 GLboolean unpack_premultiply_alpha
,
444 GLboolean unpack_unmultiply_alpha
);
445 #endif /* GL_CHROMIUM_copy_texture */
447 /* GL_CHROMIUM_compressed_copy_texture */
448 #ifndef GL_CHROMIUM_compressed_copy_texture
449 #define GL_CHROMIUM_compressed_copy_texture 1
450 #ifdef GL_GLEXT_PROTOTYPES
451 GL_APICALL
void GL_APIENTRY
glCompressedCopyTextureCHROMIUM(
452 GLenum target
, GLenum source_id
, GLenum dest_id
);
454 GL_APICALL
void GL_APIENTRY
glCompressedCopySubTextureCHROMIUM(
465 typedef void(GL_APIENTRYP PFNGLCOMPRESSEDCOPYTEXTURECHROMIUMPROC
)(
466 GLenum target
, GLenum source_id
, GLenum dest_id
);
468 typedef void(GL_APIENTRYP PFNGLCOMPRESSEDCOPYSUBTEXTURECHROMIUMPROC
)(
478 #endif /* GL_CHROMIUM_compressed_copy_texture */
480 /* GL_CHROMIUM_lose_context */
481 #ifndef GL_CHROMIUM_lose_context
482 #define GL_CHROMIUM_lose_context 1
483 #ifdef GL_GLEXT_PROTOTYPES
484 GL_APICALL
void GL_APIENTRY
glLoseContextCHROMIUM(GLenum current
, GLenum other
);
486 typedef void (GL_APIENTRYP PFNGLLOSECONTEXTCHROMIUMPROC
) (
487 GLenum current
, GLenum other
);
488 #endif /* GL_CHROMIUM_lose_context */
490 /* GL_ARB_texture_rectangle */
491 #ifndef GL_ARB_texture_rectangle
492 #define GL_ARB_texture_rectangle 1
494 #ifndef GL_SAMPLER_2D_RECT_ARB
495 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
498 #ifndef GL_TEXTURE_BINDING_RECTANGLE_ARB
499 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
502 #ifndef GL_TEXTURE_RECTANGLE_ARB
503 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
505 #endif /* GL_ARB_texture_rectangle */
507 /* GL_CHROMIUM_enable_feature */
508 #ifndef GL_CHROMIUM_enable_feature
509 #define GL_CHROMIUM_enable_feature 1
510 #ifdef GL_GLEXT_PROTOTYPES
511 GL_APICALL GLboolean GL_APIENTRY
glEnableFeatureCHROMIUM(const char* feature
);
513 typedef GLboolean (GL_APIENTRYP PFNGLENABLEFEATURECHROMIUMPROC
) (
514 const char* feature
);
515 #endif /* GL_CHROMIUM_enable_feature */
517 /* GL_CHROMIUM_command_buffer_latency_query */
518 #ifndef GL_CHROMIUM_command_buffer_latency_query
519 #define GL_CHROMIUM_command_buffer_latency_query 1
521 #ifndef GL_LATENCY_QUERY_CHROMIUM
522 // TODO(gman): Get official numbers for these constants.
523 #define GL_LATENCY_QUERY_CHROMIUM 0x6007
525 #endif /* GL_CHROMIUM_command_buffer_latency_query */
527 /* GL_ARB_robustness */
528 #ifndef GL_ARB_robustness
529 #define GL_ARB_robustness 1
531 #ifndef GL_GUILTY_CONTEXT_RESET_ARB
532 #define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
535 #ifndef GL_UNKNOWN_CONTEXT_RESET_ARB
536 #define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
539 #ifndef GL_INNOCENT_CONTEXT_RESET_ARB
540 #define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
542 #endif /* GL_ARB_robustness */
544 /* GL_EXT_framebuffer_blit */
545 #ifndef GL_EXT_framebuffer_blit
546 #define GL_EXT_framebuffer_blit 1
547 #ifdef GL_GLEXT_PROTOTYPES
548 GL_APICALL
void GL_APIENTRY
glBlitFramebufferEXT(
549 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
,
550 GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
);
552 typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFEREXTPROC
) (
553 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
,
554 GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
);
555 #endif /* GL_EXT_framebuffer_blit */
557 /* GL_EXT_draw_buffers */
558 #ifndef GL_EXT_draw_buffers
559 #define GL_EXT_draw_buffers 1
561 #ifdef GL_GLEXT_PROTOTYPES
562 GL_APICALL
void GL_APIENTRY
glDrawBuffersEXT(
563 GLsizei n
, const GLenum
* bufs
);
565 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC
) (
566 GLsizei n
, const GLenum
* bufs
);
568 #ifndef GL_COLOR_ATTACHMENT0_EXT
569 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
571 #ifndef GL_COLOR_ATTACHMENT1_EXT
572 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
574 #ifndef GL_COLOR_ATTACHMENT2_EXT
575 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
577 #ifndef GL_COLOR_ATTACHMENT3_EXT
578 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
580 #ifndef GL_COLOR_ATTACHMENT4_EXT
581 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
583 #ifndef GL_COLOR_ATTACHMENT5_EXT
584 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
586 #ifndef GL_COLOR_ATTACHMENT6_EXT
587 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
589 #ifndef GL_COLOR_ATTACHMENT7_EXT
590 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
592 #ifndef GL_COLOR_ATTACHMENT8_EXT
593 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
595 #ifndef GL_COLOR_ATTACHMENT9_EXT
596 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
598 #ifndef GL_COLOR_ATTACHMENT10_EXT
599 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
601 #ifndef GL_COLOR_ATTACHMENT11_EXT
602 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
604 #ifndef GL_COLOR_ATTACHMENT12_EXT
605 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
607 #ifndef GL_COLOR_ATTACHMENT13_EXT
608 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
610 #ifndef GL_COLOR_ATTACHMENT14_EXT
611 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
613 #ifndef GL_COLOR_ATTACHMENT15_EXT
614 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
617 #ifndef GL_DRAW_BUFFER0_EXT
618 #define GL_DRAW_BUFFER0_EXT 0x8825
620 #ifndef GL_DRAW_BUFFER1_EXT
621 #define GL_DRAW_BUFFER1_EXT 0x8826
623 #ifndef GL_DRAW_BUFFER2_EXT
624 #define GL_DRAW_BUFFER2_EXT 0x8827
626 #ifndef GL_DRAW_BUFFER3_EXT
627 #define GL_DRAW_BUFFER3_EXT 0x8828
629 #ifndef GL_DRAW_BUFFER4_EXT
630 #define GL_DRAW_BUFFER4_EXT 0x8829
632 #ifndef GL_DRAW_BUFFER5_EXT
633 #define GL_DRAW_BUFFER5_EXT 0x882A
635 #ifndef GL_DRAW_BUFFER6_EXT
636 #define GL_DRAW_BUFFER6_EXT 0x882B
638 #ifndef GL_DRAW_BUFFER7_EXT
639 #define GL_DRAW_BUFFER7_EXT 0x882C
641 #ifndef GL_DRAW_BUFFER8_EXT
642 #define GL_DRAW_BUFFER8_EXT 0x882D
644 #ifndef GL_DRAW_BUFFER9_EXT
645 #define GL_DRAW_BUFFER9_EXT 0x882E
647 #ifndef GL_DRAW_BUFFER10_EXT
648 #define GL_DRAW_BUFFER10_EXT 0x882F
650 #ifndef GL_DRAW_BUFFER11_EXT
651 #define GL_DRAW_BUFFER11_EXT 0x8830
653 #ifndef GL_DRAW_BUFFER12_EXT
654 #define GL_DRAW_BUFFER12_EXT 0x8831
656 #ifndef GL_DRAW_BUFFER13_EXT
657 #define GL_DRAW_BUFFER13_EXT 0x8832
659 #ifndef GL_DRAW_BUFFER14_EXT
660 #define GL_DRAW_BUFFER14_EXT 0x8833
662 #ifndef GL_DRAW_BUFFER15_EXT
663 #define GL_DRAW_BUFFER15_EXT 0x8834
666 #ifndef GL_MAX_COLOR_ATTACHMENTS_EXT
667 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
670 #ifndef GL_MAX_DRAW_BUFFERS_EXT
671 #define GL_MAX_DRAW_BUFFERS_EXT 0x8824
674 #endif /* GL_EXT_draw_buffers */
676 /* GL_CHROMIUM_resize */
677 #ifndef GL_CHROMIUM_resize
678 #define GL_CHROMIUM_resize 1
679 #ifdef GL_GLEXT_PROTOTYPES
680 GL_APICALL
void GL_APIENTRY
glResizeCHROMIUM(
681 GLuint width
, GLuint height
, GLfloat scale_factor
);
683 typedef void (GL_APIENTRYP PFNGLRESIZECHROMIUMPROC
) (
684 GLuint width
, GLuint height
);
685 #endif /* GL_CHROMIUM_resize */
687 /* GL_CHROMIUM_get_multiple */
688 #ifndef GL_CHROMIUM_get_multiple
689 #define GL_CHROMIUM_get_multiple 1
690 #ifdef GL_GLEXT_PROTOTYPES
691 GL_APICALL
void GL_APIENTRY
glGetProgramInfoCHROMIUM(
692 GLuint program
, GLsizei bufsize
, GLsizei
* size
, void* info
);
694 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOCHROMIUMPROC
) (
695 GLuint program
, GLsizei bufsize
, GLsizei
* size
, void* info
);
696 #endif /* GL_CHROMIUM_get_multiple */
698 /* GL_CHROMIUM_sync_point */
699 #ifndef GL_CHROMIUM_sync_point
700 #define GL_CHROMIUM_sync_point 1
701 #ifdef GL_GLEXT_PROTOTYPES
702 GL_APICALL GLuint GL_APIENTRY
glInsertSyncPointCHROMIUM();
703 GL_APICALL
void GL_APIENTRY
glWaitSyncPointCHROMIUM(GLuint sync_point
);
705 typedef GLuint (GL_APIENTRYP PFNGLINSERTSYNCPOINTCHROMIUMPROC
) ();
706 typedef void (GL_APIENTRYP PFNGLWAITSYNCPOINTCHROMIUMPROC
) (GLuint sync_point
);
707 #endif /* GL_CHROMIUM_sync_point */
709 #ifndef GL_CHROMIUM_color_buffer_float_rgba
710 #define GL_CHROMIUM_color_buffer_float_rgba 1
712 #define GL_RGBA32F 0x8814
714 #endif /* GL_CHROMIUM_color_buffer_float_rgba */
716 #ifndef GL_CHROMIUM_color_buffer_float_rgb
717 #define GL_CHROMIUM_color_buffer_float_rgb 1
719 #define GL_RGB32F 0x8815
721 #endif /* GL_CHROMIUM_color_buffer_float_rgb */
723 /* GL_CHROMIUM_schedule_overlay_plane */
724 #ifndef GL_CHROMIUM_schedule_overlay_plane
725 #define GL_CHROMIUM_schedule_overlay_plane 1
727 #ifndef GL_OVERLAY_TRANSFORM_NONE_CHROMIUM
728 #define GL_OVERLAY_TRANSFORM_NONE_CHROMIUM 0x9245
731 #ifndef GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM
732 #define GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM 0x9246
735 #ifndef GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM
736 #define GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM 0x9247
739 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM
740 #define GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM 0x9248
743 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM
744 #define GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM 0x9249
747 #ifndef GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM
748 #define GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM 0x924A
751 /* GL_CHROMIUM_subscribe_uniform */
752 #ifndef GL_CHROMIUM_subscribe_uniform
753 #define GL_CHROMIUM_subscribe_uniform 1
755 #ifndef GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM
756 #define GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM 0x924B
759 #ifndef GL_MOUSE_POSITION_CHROMIUM
760 #define GL_MOUSE_POSITION_CHROMIUM 0x924C
763 #ifdef GL_GLEXT_PROTOTYPES
764 GL_APICALL
void GL_APIENTRY
765 glGenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
);
766 GL_APICALL
void GL_APIENTRY
767 glDeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
);
768 GL_APICALL GLboolean GL_APIENTRY
glIsValuebufferCHROMIUM(GLuint valuebuffer
);
769 GL_APICALL
void GL_APIENTRY
770 glBindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
);
771 GL_APICALL
void GL_APIENTRY
772 glSubscribeValueCHROMIUM(GLenum target
, GLenum subscription
);
773 GL_APICALL
void GL_APIENTRY
glPopulateSubscribedValuesCHROMIUM(GLenum target
);
774 GL_APICALL
void GL_APIENTRY
glUniformValuebufferCHROMIUM(GLint location
,
776 GLenum subscription
);
778 #endif /* GL_CHROMIUM_subscribe_uniform */
780 #ifdef GL_GLEXT_PROTOTYPES
781 GL_APICALL
void GL_APIENTRY
782 glScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
783 GLenum plane_transform
,
784 GLuint overlay_texture_id
,
794 typedef void(GL_APIENTRYP PFNGLSCHEDULEOVERLAYPLANECHROMIUMPROC
)(
796 GLenum plane_transform
,
797 GLuint overlay_texture_id
,
806 #endif /* GL_CHROMIUM_schedule_overlay_plane */
808 /* GL_CHROMIUM_sync_query */
809 #ifndef GL_CHROMIUM_sync_query
810 #define GL_CHROMIUM_sync_query 1
812 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM
813 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7
815 #endif /* GL_CHROMIUM_sync_query */
817 #ifndef GL_CHROMIUM_path_rendering
818 #define GL_CHROMIUM_path_rendering 1
820 #ifdef GL_GLEXT_PROTOTYPES
821 GL_APICALL
void GL_APIENTRY
822 glMatrixLoadfCHROMIUM(GLenum mode
, const GLfloat
* m
);
823 GL_APICALL
void GL_APIENTRY
glMatrixLoadIdentityCHROMIUM(GLenum mode
);
824 GL_APICALL GLuint GL_APIENTRY
glGenPathsCHROMIUM(GLsizei range
);
825 GL_APICALL
void GL_APIENTRY
glDeletePathsCHROMIUM(GLuint path
, GLsizei range
);
826 GL_APICALL GLboolean GL_APIENTRY
glIsPathCHROMIUM(GLuint path
);
827 GL_APICALL
void GL_APIENTRY
glPathCommandsCHROMIUM(GLuint path
,
829 const GLubyte
* commands
,
833 GL_APICALL
void GL_APIENTRY
834 glPathParameteriCHROMIUM(GLuint path
, GLenum pname
, GLint value
);
835 GL_APICALL
void GL_APIENTRY
836 glPathParameterfCHROMIUM(GLuint path
, GLenum pname
, GLfloat value
);
837 GL_APICALL
void GL_APIENTRY
838 glPathStencilFuncCHROMIUM(GLenum func
, GLint ref
, GLuint mask
);
839 GL_APICALL
void GL_APIENTRY
840 glStencilFillPathCHROMIUM(GLuint path
, GLenum fillMode
, GLuint mask
);
841 GL_APICALL
void GL_APIENTRY
842 glStencilStrokePathCHROMIUM(GLuint path
, GLint reference
, GLuint mask
);
843 GL_APICALL
void GL_APIENTRY
844 glCoverFillPathCHROMIUM(GLuint path
, GLenum coverMode
);
845 GL_APICALL
void GL_APIENTRY
846 glCoverStrokePathCHROMIUM(GLuint name
, GLenum coverMode
);
847 GL_APICALL
void GL_APIENTRY
848 glStencilThenCoverFillPathCHROMIUM(GLuint path
,
852 GL_APICALL
void GL_APIENTRY
853 glStencilThenCoverStrokePathCHROMIUM(GLuint path
,
860 typedef void(GL_APIENTRYP PFNGLMATRIXLOADFCHROMIUMPROC
)(GLenum matrixMode
,
862 typedef void(GL_APIENTRYP PFNGLMATRIXLOADIDENTITYCHROMIUMPROC
)(
864 typedef GLuint(GL_APIENTRYP
* PFNGLGENPATHSCHROMIUMPROC
)(GLsizei range
);
865 typedef void(GL_APIENTRYP
* PFNGLDELETEPATHSCHROMIUMPROC
)(GLuint path
,
867 typedef GLboolean(GL_APIENTRYP
* PFNGLISPATHCHROMIUMPROC
)(GLuint path
);
868 typedef void(GL_APIENTRYP
* PFNGLPATHCOMMANDSCHROMIUMPROC
)(
871 const GLubyte
* commands
,
874 const GLvoid
* coords
);
875 typedef void(GL_APIENTRYP
* PFNGLPATHPARAMETERICHROMIUMPROC
)(GLuint path
,
878 typedef void(GL_APIENTRYP
* PFNGLPATHPARAMETERFCHROMIUMPROC
)(GLuint path
,
881 typedef void(GL_APIENTRYP
* PFNGLPATHSTENCILFUNCCHROMIUMPROC
)(GLenum func
,
884 typedef void(GL_APIENTRYP
* PFNGLSTENCILFILLPATHCHROMIUMPROC
)(GLuint path
,
887 typedef void(GL_APIENTRYP
* PFNGLSTENCILSTROKEPATHCHROMIUMPROC
)(GLuint path
,
890 typedef void(GL_APIENTRYP
* PFNGLCOVERFILLPATHCHROMIUMPROC
)(GLuint path
,
892 typedef void(GL_APIENTRYP
* PFNGLCOVERSTROKEPATHCHROMIUMPROC
)(GLuint name
,
895 typedef void(GL_APIENTRYP
* PFNGLSTENCILTHENCOVERFILLPATHCHROMIUMPROC
)(
900 typedef void(GL_APIENTRYP
* PFNGLSTENCILTHENCOVERSTROKEPATHCHROMIUMPROC
)(
906 #ifndef GL_CLOSE_PATH_CHROMIUM
907 #define GL_CLOSE_PATH_CHROMIUM 0x00
909 #ifndef GL_MOVE_TO_CHROMIUM
910 #define GL_MOVE_TO_CHROMIUM 0x02
912 #ifndef GL_LINE_TO_CHROMIUM
913 #define GL_LINE_TO_CHROMIUM 0x04
915 #ifndef GL_QUADRATIC_CURVE_TO_CHROMIUM
916 #define GL_QUADRATIC_CURVE_TO_CHROMIUM 0x0A
918 #ifndef GL_CUBIC_CURVE_TO_CHROMIUM
919 #define GL_CUBIC_CURVE_TO_CHROMIUM 0x0C
921 #ifndef GL_CONIC_CURVE_TO_CHROMIUM
922 #define GL_CONIC_CURVE_TO_CHROMIUM 0x1A
924 #ifndef GL_PATH_MODELVIEW_MATRIX_CHROMIUM
925 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6
927 #ifndef GL_PATH_PROJECTION_MATRIX_CHROMIUM
928 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7
930 #ifndef GL_PATH_MODELVIEW_CHROMIUM
931 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700
933 #ifndef GL_PATH_PROJECTION_CHROMIUM
934 #define GL_PATH_PROJECTION_CHROMIUM 0x1701
936 #ifndef GL_FLAT_CHROMIUM
937 #define GL_FLAT_CHROMIUM 0x1D00
939 #ifndef GL_PATH_STROKE_WIDTH_CHROMIUM
940 #define GL_PATH_STROKE_WIDTH_CHROMIUM 0x9075
942 #ifndef GL_PATH_END_CAPS_CHROMIUM
943 #define GL_PATH_END_CAPS_CHROMIUM 0x9076
945 #ifndef GL_PATH_JOIN_STYLE_CHROMIUM
946 #define GL_PATH_JOIN_STYLE_CHROMIUM 0x9079
948 #ifndef GL_PATH_MITER_LIMIT_CHROMIUM
949 #define GL_PATH_MITER_LIMIT_CHROMIUM 0x907a
951 #ifndef GL_PATH_STROKE_BOUND_CHROMIUM
952 #define GL_PATH_STROKE_BOUND_CHROMIUM 0x9086
954 #ifndef GL_COUNT_UP_CHROMIUM
955 #define GL_COUNT_UP_CHROMIUM 0x9088
957 #ifndef GL_COUNT_DOWN_CHROMIUM
958 #define GL_COUNT_DOWN_CHROMIUM 0x9089
960 #ifndef GL_CONVEX_HULL_CHROMIUM
961 #define GL_CONVEX_HULL_CHROMIUM 0x908B
963 #ifndef GL_BOUNDING_BOX_CHROMIUM
964 #define GL_BOUNDING_BOX_CHROMIUM 0x908D
966 #ifndef GL_SQUARE_CHROMIUM
967 #define GL_SQUARE_CHROMIUM 0x90a3
969 #ifndef GL_ROUND_CHROMIUM
970 #define GL_ROUND_CHROMIUM 0x90a4
972 #ifndef GL_ROUND_CHROMIUM
973 #define GL_ROUND_CHROMIUM 0x90A4
975 #ifndef GL_BEVEL_CHROMIUM
976 #define GL_BEVEL_CHROMIUM 0x90A6
978 #ifndef GL_MITER_REVERT_CHROMIUM
979 #define GL_MITER_REVERT_CHROMIUM 0x90A7
981 #ifndef GL_PATH_STENCIL_FUNC_CHROMIUM
982 #define GL_PATH_STENCIL_FUNC_CHROMIUM 0x90B7
984 #ifndef GL_PATH_STENCIL_REF_CHROMIUM
985 #define GL_PATH_STENCIL_REF_CHROMIUM 0x90B8
987 #ifndef GL_PATH_STENCIL_VALUE_MASK_CHROMIUM
988 #define GL_PATH_STENCIL_VALUE_MASK_CHROMIUM 0x90B9
991 #endif /* GL_CHROMIUM_path_rendering */
997 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_