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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 #define GL_CHROMIUM_map_image 1 | 99 #define GL_CHROMIUM_map_image 1 |
100 | 100 |
101 #ifndef GL_IMAGE_ROWBYTES_CHROMIUM | 101 #ifndef GL_IMAGE_ROWBYTES_CHROMIUM |
102 #define GL_IMAGE_ROWBYTES_CHROMIUM 0x78F0 | 102 #define GL_IMAGE_ROWBYTES_CHROMIUM 0x78F0 |
103 #endif | 103 #endif |
104 | 104 |
105 #ifndef GL_READ_WRITE | 105 #ifndef GL_READ_WRITE |
106 #define GL_READ_WRITE 0x88BA | 106 #define GL_READ_WRITE 0x88BA |
107 #endif | 107 #endif |
108 | 108 |
109 #ifndef GL_SCANOUT | |
110 #define GL_SCANOUT 0x88BB | |
111 #endif | |
112 | |
109 #ifdef GL_GLEXT_PROTOTYPES | 113 #ifdef GL_GLEXT_PROTOTYPES |
110 GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM( | 114 GL_APICALL GLuint GL_APIENTRY glCreateImageCHROMIUM(GLsizei width, |
111 GLsizei width, GLsizei height, GLenum internalformat); | 115 GLsizei height, |
116 GLenum internalformat, | |
117 GLenum usage); | |
112 GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id); | 118 GL_APICALL void GL_APIENTRY glDestroyImageCHROMIUM(GLuint image_id); |
113 GL_APICALL void GL_APIENTRY glGetImageParameterivCHROMIUM( | 119 GL_APICALL void GL_APIENTRY glGetImageParameterivCHROMIUM( |
114 GLuint image_id, GLenum pname, GLint* params); | 120 GLuint image_id, GLenum pname, GLint* params); |
115 GL_APICALL void* GL_APIENTRY glMapImageCHROMIUM(GLuint image_id, GLenum access); | 121 GL_APICALL void* GL_APIENTRY glMapImageCHROMIUM(GLuint image_id); |
116 GL_APICALL void GL_APIENTRY glUnmapImageCHROMIUM(GLuint image_id); | 122 GL_APICALL void GL_APIENTRY glUnmapImageCHROMIUM(GLuint image_id); |
117 #endif | 123 #endif |
118 typedef GLuint (GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC) ( | 124 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC)( |
119 GLsizei width, GLsizei height, GLenum internalformat); | 125 GLsizei width, |
126 GLsizei heiBht, | |
reveman
2014/04/30 11:31:28
height
| |
127 GLenum internalformat); | |
120 typedef void ( | 128 typedef void ( |
121 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC) (GLuint image_id); | 129 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC) (GLuint image_id); |
122 typedef void ( | 130 typedef void ( |
123 GL_APIENTRYP PFNGLGETIMAGEPARAMETERIVCHROMIUMPROC) ( | 131 GL_APIENTRYP PFNGLGETIMAGEPARAMETERIVCHROMIUMPROC) ( |
124 GLuint image_id, GLenum pname, GLint* params); | 132 GLuint image_id, GLenum pname, GLint* params); |
125 typedef void* (GL_APIENTRYP PFNGLMAPIMAGECHROMIUMPROC) ( | 133 typedef void* (GL_APIENTRYP PFNGLMAPIMAGECHROMIUMPROC) ( |
126 GLuint image_id, GLenum access); | 134 GLuint image_id, GLenum access); |
127 typedef void (GL_APIENTRYP PFNGLUNMAPIMAGECHROMIUMPROC) (GLuint image_id); | 135 typedef void (GL_APIENTRYP PFNGLUNMAPIMAGECHROMIUMPROC) (GLuint image_id); |
128 #endif /* GL_CHROMIUM_map_image */ | 136 #endif /* GL_CHROMIUM_map_image */ |
129 | 137 |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
699 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM | 707 #ifndef GL_COMMANDS_COMPLETED_CHROMIUM |
700 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 | 708 #define GL_COMMANDS_COMPLETED_CHROMIUM 0x84F7 |
701 #endif | 709 #endif |
702 #endif /* GL_CHROMIUM_sync_query */ | 710 #endif /* GL_CHROMIUM_sync_query */ |
703 | 711 |
704 #ifdef __cplusplus | 712 #ifdef __cplusplus |
705 } | 713 } |
706 #endif | 714 #endif |
707 | 715 |
708 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ | 716 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ |
OLD | NEW |