Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 #ifndef GL_CHROMIUM_texture_mailbox | 48 #ifndef GL_CHROMIUM_texture_mailbox |
| 49 #define GL_CHROMIUM_texture_mailbox 1 | 49 #define GL_CHROMIUM_texture_mailbox 1 |
| 50 | 50 |
| 51 #ifndef GL_MAILBOX_SIZE_CHROMIUM | 51 #ifndef GL_MAILBOX_SIZE_CHROMIUM |
| 52 #define GL_MAILBOX_SIZE_CHROMIUM 64 | 52 #define GL_MAILBOX_SIZE_CHROMIUM 64 |
| 53 #endif | 53 #endif |
| 54 #ifdef GL_GLEXT_PROTOTYPES | 54 #ifdef GL_GLEXT_PROTOTYPES |
| 55 GL_APICALL void GL_APIENTRY glGenMailboxCHROMIUM(GLbyte* mailbox); | 55 GL_APICALL void GL_APIENTRY glGenMailboxCHROMIUM(GLbyte* mailbox); |
| 56 GL_APICALL void GL_APIENTRY glProduceTextureCHROMIUM( | 56 GL_APICALL void GL_APIENTRY glProduceTextureCHROMIUM( |
| 57 GLenum target, const GLbyte* mailbox); | 57 GLenum target, const GLbyte* mailbox); |
| 58 GL_APICALL void GL_APIENTRY glProduceTextureBindlessCHROMIUM( | |
|
Ken Russell (switch to Gerrit)
2014/05/23 04:04:41
I think the term "bindless" might cause confusion
| |
| 59 GLuint texture, GLenum target, const GLbyte* mailbox); | |
|
piman
2014/05/22 21:53:58
Nit: the GL-y way is to have target before texture
| |
| 58 GL_APICALL void GL_APIENTRY glConsumeTextureCHROMIUM( | 60 GL_APICALL void GL_APIENTRY glConsumeTextureCHROMIUM( |
| 59 GLenum target, const GLbyte* mailbox); | 61 GLenum target, const GLbyte* mailbox); |
| 62 GL_APICALL GLuint GL_APIENTRY glCreateAndConsumeTextureCHROMIUM( | |
| 63 GLenum target, const GLbyte* mailbox); | |
| 60 #endif | 64 #endif |
| 61 typedef void (GL_APIENTRYP PFNGLGENMAILBOXCHROMIUMPROC) (GLbyte* mailbox); | 65 typedef void (GL_APIENTRYP PFNGLGENMAILBOXCHROMIUMPROC) (GLbyte* mailbox); |
| 62 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTURECHROMIUMPROC) ( | 66 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTURECHROMIUMPROC) ( |
| 63 GLenum target, const GLbyte* mailbox); | 67 GLenum target, const GLbyte* mailbox); |
| 68 typedef void (GL_APIENTRYP PFNGLPRODUCETEXTUREBINDLESSCHROMIUMPROC) ( | |
| 69 GLenum target, const GLbyte* mailbox); | |
|
Ken Russell (switch to Gerrit)
2014/05/23 04:04:41
The signature of the function pointer doesn't matc
| |
| 64 typedef void (GL_APIENTRYP PFNGLCONSUMETEXTURECHROMIUMPROC) ( | 70 typedef void (GL_APIENTRYP PFNGLCONSUMETEXTURECHROMIUMPROC) ( |
| 65 GLenum target, const GLbyte* mailbox); | 71 GLenum target, const GLbyte* mailbox); |
| 72 typedef GLuint (GL_APIENTRYP PFNGLCREATEANDCONSUMETEXTURECHROMIUMPROC) ( | |
| 73 GLenum target, const GLbyte* mailbox); | |
| 66 #endif /* GL_CHROMIUM_texture_mailbox */ | 74 #endif /* GL_CHROMIUM_texture_mailbox */ |
| 67 | 75 |
| 68 /* GL_CHROMIUM_pixel_transfer_buffer_object */ | 76 /* GL_CHROMIUM_pixel_transfer_buffer_object */ |
| 69 #ifndef GL_CHROMIUM_pixel_transfer_buffer_object | 77 #ifndef GL_CHROMIUM_pixel_transfer_buffer_object |
| 70 #define GL_CHROMIUM_pixel_transfer_buffer_object 1 | 78 #define GL_CHROMIUM_pixel_transfer_buffer_object 1 |
| 71 | 79 |
| 72 #ifndef GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM | 80 #ifndef GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM |
| 73 // TODO(reveman): Get official numbers for this constants. | 81 // TODO(reveman): Get official numbers for this constants. |
| 74 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC | 82 #define GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC |
| 75 #define GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED | 83 #define GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM 0x78ED |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 707 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM | 715 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM |
| 708 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 | 716 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 |
| 709 #endif | 717 #endif |
| 710 #endif /* GL_CHROMIUM_sync_query */ | 718 #endif /* GL_CHROMIUM_sync_query */ |
| 711 | 719 |
| 712 #ifdef __cplusplus | 720 #ifdef __cplusplus |
| 713 } | 721 } |
| 714 #endif | 722 #endif |
| 715 | 723 |
| 716 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ | 724 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ |
| OLD | NEW |