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

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

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test. Created 4 years, 6 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #endif 120 #endif
121 121
122 #ifndef GL_RGB_YCBCR_422_CHROMIUM 122 #ifndef GL_RGB_YCBCR_422_CHROMIUM
123 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB 123 #define GL_RGB_YCBCR_422_CHROMIUM 0x78FB
124 #endif 124 #endif
125 125
126 #ifndef GL_RGB_YCBCR_420V_CHROMIUM 126 #ifndef GL_RGB_YCBCR_420V_CHROMIUM
127 #define GL_RGB_YCBCR_420V_CHROMIUM 0x78FC 127 #define GL_RGB_YCBCR_420V_CHROMIUM 0x78FC
128 #endif 128 #endif
129 129
130 #ifndef GL_GPU_MEMORY_BUFFER_ID
131 #define GL_GPU_MEMORY_BUFFER_ID 0x78FD
132 #endif
133
130 #ifdef GL_GLEXT_PROTOTYPES 134 #ifdef GL_GLEXT_PROTOTYPES
131 GL_APICALL GLuint GL_APIENTRY glCreateGpuMemoryBufferImageCHROMIUM( 135 GL_APICALL GLuint GL_APIENTRY glCreateGpuMemoryBufferImageCHROMIUM(
132 GLsizei width, 136 GLsizei width,
133 GLsizei height, 137 GLsizei height,
134 GLenum internalformat, 138 GLenum internalformat,
135 GLenum usage); 139 GLenum usage);
140
141 GL_APICALL void GL_APIENTRY glGetImageivCHROMIUM(
142 GLuint image_id,
143 GLenum param,
144 GLint* data);
136 #endif 145 #endif
137 typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC)( 146 typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC)(
138 GLsizei width, 147 GLsizei width,
139 GLsizei height, 148 GLsizei height,
140 GLenum internalformat, 149 GLenum internalformat,
141 GLenum usage); 150 GLenum usage);
151 typedef GLint(GL_APIENTRYP PFNGLGETIMAGEIVCHROMIUMPROC)(
152 GLuint image_id,
153 GLenum param);
142 #endif /* GL_CHROMIUM_gpu_memory_buffer_image */ 154 #endif /* GL_CHROMIUM_gpu_memory_buffer_image */
143 155
144 /* GL_CHROMIUM_map_sub */ 156 /* GL_CHROMIUM_map_sub */
145 #ifndef GL_CHROMIUM_map_sub 157 #ifndef GL_CHROMIUM_map_sub
146 #define GL_CHROMIUM_map_sub 1 158 #define GL_CHROMIUM_map_sub 1
147 159
148 #ifndef GL_READ_ONLY 160 #ifndef GL_READ_ONLY
149 #define GL_READ_ONLY 0x88B8 161 #define GL_READ_ONLY 0x88B8
150 #endif 162 #endif
151 163
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components); 1210 GL_APICALL void GL_APIENTRY glCoverageModulationCHROMIUM(GLenum components);
1199 #endif 1211 #endif
1200 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332 1212 #define GL_COVERAGE_MODULATION_CHROMIUM 0x9332
1201 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */ 1213 #endif /* GL_CHROMIUM_framebuffer_mixed_samples */
1202 1214
1203 #ifdef __cplusplus 1215 #ifdef __cplusplus
1204 } 1216 }
1205 #endif 1217 #endif
1206 1218
1207 #endif // GPU_GLES2_GL2EXTCHROMIUM_H_ 1219 #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