Bug 1250710 - Add webidl. - r=bz
MozReview-Commit-ID: AB67Z06sMy0
--- a/dom/webidl/WebGL2RenderingContext.webidl
+++ b/dom/webidl/WebGL2RenderingContext.webidl
@@ -316,16 +316,24 @@ interface WebGL2RenderingContext : WebGL
const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247;
/* Buffer objects */
void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset,
GLintptr writeOffset, GLsizeiptr size);
void getBufferSubData(GLenum target, GLintptr offset, ArrayBuffer? returnedData);
void getBufferSubData(GLenum target, GLintptr offset, SharedArrayBuffer returnedData);
+ [Throws] /* Throws on readback in a write-only context. */
+ void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, GLintptr offset);
+ /* Include our WebGL 1 function override(s) */
+ [Throws]
+ void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
+ GLenum type, ArrayBufferView? pixels);
+
/* Framebuffer objects */
void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0,
GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer);
[Throws]
void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments);