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

Unified Diff: Source/modules/webgl/WebGL2RenderingContextBase.idl

Issue 1300573002: WebGL 2: add readPixels API to read pixels into pixel pack buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move the new readPixels to WebGL 2 Created 5 years, 4 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
Index: Source/modules/webgl/WebGL2RenderingContextBase.idl
diff --git a/Source/modules/webgl/WebGL2RenderingContextBase.idl b/Source/modules/webgl/WebGL2RenderingContextBase.idl
index 3361c1aa65bdefc8b14b2001053cad60ca5f1c0d..f8a77afaa084e17c80f1d6122b9416ee37a28972 100644
--- a/Source/modules/webgl/WebGL2RenderingContextBase.idl
+++ b/Source/modules/webgl/WebGL2RenderingContextBase.idl
@@ -432,5 +432,8 @@ typedef long long GLint64;
void deleteVertexArray(WebGLVertexArrayObject? vertexArray);
GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
void bindVertexArray(WebGLVertexArrayObject? vertexArray);
+
+ /* Reading */
+ void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset);
};
WebGL2RenderingContextBase implements WebGLRenderingContextBase;

Powered by Google App Engine
This is Rietveld 408576698