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

Unified Diff: gpu/command_buffer/client/gles2_c_lib_autogen.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, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_c_lib_autogen.h
diff --git a/gpu/command_buffer/client/gles2_c_lib_autogen.h b/gpu/command_buffer/client/gles2_c_lib_autogen.h
index 3d3284d37c339d3d92e5117bfc33c3251ee2f0b6..550ae198b0f3ffe8708b8f968b9acd41296e94d0 100644
--- a/gpu/command_buffer/client/gles2_c_lib_autogen.h
+++ b/gpu/command_buffer/client/gles2_c_lib_autogen.h
@@ -1316,6 +1316,11 @@ GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
width, height, internalformat, usage);
}
+void GL_APIENTRY GLES2GetImageivCHROMIUM(GLuint image_id,
+ GLenum param,
+ GLint* data) {
+ gles2::GetGLContext()->GetImageivCHROMIUM(image_id, param, data);
+}
void GL_APIENTRY GLES2GetTranslatedShaderSourceANGLE(GLuint shader,
GLsizei bufsize,
GLsizei* length,
@@ -2701,6 +2706,10 @@ extern const NameToFunc g_gles2_function_table[] = {
glCreateGpuMemoryBufferImageCHROMIUM),
},
{
+ "glGetImageivCHROMIUM",
+ reinterpret_cast<GLES2FunctionPointer>(glGetImageivCHROMIUM),
+ },
+ {
"glGetTranslatedShaderSourceANGLE",
reinterpret_cast<GLES2FunctionPointer>(
glGetTranslatedShaderSourceANGLE),
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698