Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl |
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl |
| index ac9b9868ec8afae9d3d1ad67a021714c2f7b8759..60bb8063511bc33797dbd9262a4825870763e075 100644 |
| --- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl |
| +++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl |
| @@ -288,8 +288,10 @@ typedef long long GLint64; |
| const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; |
| /* Buffer objects */ |
| + void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0); |
| + void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView srcData, GLuint srcOffset, optional GLuint length = 0); |
|
Ken Russell (switch to Gerrit)
2016/08/20 03:05:35
Ah, so you didn't find it necessary to replicate t
Zhenyao Mo
2016/08/20 03:44:23
Not really. I have to duplicate the overloaded fun
|
| 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 srcByteOffset, ArrayBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); |
| /* Framebuffer objects */ |
| void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |