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

Unified Diff: Source/modules/webgl/WebGLRenderingContextBase.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: 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
« no previous file with comments | « Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webgl/WebGLRenderingContextBase.idl
diff --git a/Source/modules/webgl/WebGLRenderingContextBase.idl b/Source/modules/webgl/WebGLRenderingContextBase.idl
index ad3c1b81635569b9403c3d6d2981ed2022995a47..c379f235b172bf8ac37e6b16d0c5cdef8d161bfe 100644
--- a/Source/modules/webgl/WebGLRenderingContextBase.idl
+++ b/Source/modules/webgl/WebGLRenderingContextBase.idl
@@ -598,6 +598,7 @@ typedef unrestricted float GLclampf;
void polygonOffset(GLfloat factor, GLfloat units);
void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels);
+ void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset);
Zhenyao Mo 2015/08/17 17:02:47 No, you can't expose this to WebGL 1. It is a Web
yunchao 2015/08/18 02:30:00 In the implementation, we can directly return and
Ken Russell (switch to Gerrit) 2015/08/18 02:55:48 I'm not sure that this would be completely invisib
yunchao 2015/08/18 05:35:58 cross-class overloading is not allowed, it will al
void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
void sampleCoverage(GLclampf value, GLboolean invert);
« no previous file with comments | « Source/modules/webgl/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698