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

Unified 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, 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/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/gl2extchromium.h
diff --git a/gpu/GLES2/gl2extchromium.h b/gpu/GLES2/gl2extchromium.h
index 2fe3ebfacc7b1df1a55c65f9ffdd3aab68463f16..335f586572406583590ffabb74a519ab8ae3b9b3 100644
--- a/gpu/GLES2/gl2extchromium.h
+++ b/gpu/GLES2/gl2extchromium.h
@@ -127,18 +127,30 @@ typedef void (
#define GL_RGB_YCBCR_420V_CHROMIUM 0x78FC
#endif
+#ifndef GL_GPU_MEMORY_BUFFER_ID
+#define GL_GPU_MEMORY_BUFFER_ID 0x78FD
+#endif
+
#ifdef GL_GLEXT_PROTOTYPES
GL_APICALL GLuint GL_APIENTRY glCreateGpuMemoryBufferImageCHROMIUM(
GLsizei width,
GLsizei height,
GLenum internalformat,
GLenum usage);
+
+GL_APICALL void GL_APIENTRY glGetImageivCHROMIUM(
+ GLuint image_id,
+ GLenum param,
+ GLint* data);
#endif
typedef GLuint(GL_APIENTRYP PFNGLCREATEGPUMEMORYBUFFERIMAGECHROMIUMPROC)(
GLsizei width,
GLsizei height,
GLenum internalformat,
GLenum usage);
+typedef GLint(GL_APIENTRYP PFNGLGETIMAGEIVCHROMIUMPROC)(
+ GLuint image_id,
+ GLenum param);
#endif /* GL_CHROMIUM_gpu_memory_buffer_image */
/* GL_CHROMIUM_map_sub */
« 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