Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: gpu/GLES2/gl2extchromium.h

Issue 2831733003: Fix blits from multisampled renderbuffers to alpha:false WebGL back buffer. (Closed)
Patch Set: Add PLATFORM_EXPORT to fix link failure on Windows. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
87 #endif 95 #endif
88 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC)( 96 typedef GLuint(GL_APIENTRYP PFNGLCREATEIMAGECHROMIUMPROC)(
89 ClientBuffer buffer, 97 ClientBuffer buffer,
90 GLsizei width, 98 GLsizei width,
91 GLsizei height, 99 GLsizei height,
92 GLenum internalformat); 100 GLenum internalformat);
93 typedef void ( 101 typedef void (
94 GL_APIENTRYP PFNGLDESTROYIMAGECHROMIUMPROC)(GLuint image_id); 102 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);
95 #endif /* GL_CHROMIUM_image */ 111 #endif /* GL_CHROMIUM_image */
96 112
97 #ifndef GL_RGB_YCRCB_420_CHROMIUM 113 #ifndef GL_RGB_YCRCB_420_CHROMIUM
98 #define GL_RGB_YCRCB_420_CHROMIUM 0x78FA 114 #define GL_RGB_YCRCB_420_CHROMIUM 0x78FA
99 #endif 115 #endif
100 116
101 #ifndef GL_RGB_YCBCR_422_CHROMIUM 117 #ifndef GL_RGB_YCBCR_422_CHROMIUM
102 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB 118 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB
103 #endif 119 #endif
104 120
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 /* GL_CHROMIUM_get_error_query */ 178 /* GL_CHROMIUM_get_error_query */
163 #ifndef GL_CHROMIUM_get_error_query 179 #ifndef GL_CHROMIUM_get_error_query
164 #define GL_CHROMIUM_get_error_query 1 180 #define GL_CHROMIUM_get_error_query 1
165 181
166 #ifndef GL_GET_ERROR_QUERY_CHROMIUM 182 #ifndef GL_GET_ERROR_QUERY_CHROMIUM
167 // TODO(gman): Get official numbers for this constants. 183 // TODO(gman): Get official numbers for this constants.
168 #define GL_GET_ERROR_QUERY_CHROMIUM 0x6003 184 #define GL_GET_ERROR_QUERY_CHROMIUM 0x6003
169 #endif 185 #endif
170 #endif /* GL_CHROMIUM_get_error_query */ 186 #endif /* GL_CHROMIUM_get_error_query */
171 187
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
187 /* GL_CHROMIUM_post_sub_buffer */ 188 /* GL_CHROMIUM_post_sub_buffer */
188 #ifndef GL_CHROMIUM_post_sub_buffer 189 #ifndef GL_CHROMIUM_post_sub_buffer
189 #define GL_CHROMIUM_post_sub_buffer 1 190 #define GL_CHROMIUM_post_sub_buffer 1
190 #ifdef GL_GLEXT_PROTOTYPES 191 #ifdef GL_GLEXT_PROTOTYPES
191 GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM( 192 GL_APICALL void GL_APIENTRY glPostSubBufferCHROMIUM(
192 GLint x, GLint y, GLint width, GLint height); 193 GLint x, GLint y, GLint width, GLint height);
193 #endif 194 #endif
194 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUMPROC) ( 195 typedef void (GL_APIENTRYP PFNGLPOSTSUBBUFFERCHROMIUMPROC) (
195 GLint x, GLint y, GLint width, GLint height); 196 GLint x, GLint y, GLint width, GLint height);
196 #endif /* GL_CHROMIUM_post_sub_buffer */ 197 #endif /* GL_CHROMIUM_post_sub_buffer */
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 #ifndef GL_ARB_occlusion_query 1197 #ifndef GL_ARB_occlusion_query
1197 #define GL_ARB_occlusion_query 1 1198 #define GL_ARB_occlusion_query 1
1198 #define GL_SAMPLES_PASSED_ARB 0x8914 1199 #define GL_SAMPLES_PASSED_ARB 0x8914
1199 #endif /* GL_ARB_occlusion_query */ 1200 #endif /* GL_ARB_occlusion_query */
1200 1201
1201 #ifdef __cplusplus 1202 #ifdef __cplusplus
1202 } 1203 }
1203 #endif 1204 #endif
1204 1205
1205 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1206 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698