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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt

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 | « components/mus/public/cpp/lib/command_buffer_client_impl.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt
index 93af3d94275c0c7f33043b367a2e34fbb899ec33..7af2e7f7819f7265280b9e140982f632acb20231 100644
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt
@@ -31,6 +31,10 @@ New Tokens
READ_WRITE_CHROMIUM 0x78F2
+ Accepted by the <param> parameter of GetImageivCHROMIUM:
+
+ GL_GPU_MEMORY_BUFFER_ID 0x78FD
+
New Procedures and Functions
GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
@@ -59,6 +63,12 @@ New Procedures and Functions
copyTexSubImage2D) will perform paramter validation as if the internal
format were RGB.
+ void GetImageivCHROMIUM(GLuint image_id, GLenum param, GLint* data)
+
+ When the parameter GL_GPU_MEMORY_BUFFER_ID is passed as <param>, returns the
+ id of the GpuMemoryBuffer associated with <image_id>. If the image does not
+ exist, or is not associated with a GpuMemoryBuffer, returns -1.
+
Errors
None.
@@ -71,3 +81,4 @@ Revision History
9/29/2014 Documented the extension.
4/12/2016 Added details of OS X RGB workaround.
+ 5/25/2016 Added the GetImageivCHROMIUM function.
« no previous file with comments | « components/mus/public/cpp/lib/command_buffer_client_impl.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698