| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 typedef long long GLint64; | 5 typedef long long GLint64; |
| 6 | 6 |
| 7 [ | 7 [ |
| 8 RuntimeEnabled=UnsafeES3APIs, | 8 RuntimeEnabled=UnsafeES3APIs, |
| 9 NoInterfaceObject, | 9 NoInterfaceObject, |
| 10 ] interface WebGL2RenderingContextBase { | 10 ] interface WebGL2RenderingContextBase { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 const GLint TIMEOUT_IGNORED = -1; | 285 const GLint TIMEOUT_IGNORED = -1; |
| 286 | 286 |
| 287 /* WebGL-specific enums */ | 287 /* WebGL-specific enums */ |
| 288 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; | 288 const GLenum MAX_CLIENT_WAIT_TIMEOUT_WEBGL = 0x9247; |
| 289 | 289 |
| 290 /* Buffer objects */ | 290 /* Buffer objects */ |
| 291 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint
srcOffset, optional GLuint length = 0); | 291 void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint
srcOffset, optional GLuint length = 0); |
| 292 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr
cData, GLuint srcOffset, optional GLuint length = 0); | 292 void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView sr
cData, GLuint srcOffset, optional GLuint length = 0); |
| 293 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO
ffset, GLintptr writeOffset, GLsizeiptr size); | 293 void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readO
ffset, GLintptr writeOffset, GLsizeiptr size); |
| 294 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView
dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); | 294 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBufferView
dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); |
| 295 // TODO(zmo): Obsolete, remove after WebGL2 conformance tests are updated. | |
| 296 void getBufferSubData(GLenum target, GLintptr srcByteOffset, ArrayBuffer? ds
tData); | |
| 297 | 295 |
| 298 /* Framebuffer objects */ | 296 /* Framebuffer objects */ |
| 299 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi
nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
; | 297 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi
nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
; |
| 300 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture?
texture, GLint level, GLint layer); | 298 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture?
texture, GLint level, GLint layer); |
| 301 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum
internalformat, GLenum pname); | 299 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum
internalformat, GLenum pname); |
| 302 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); | 300 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); |
| 303 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments,
GLint x, GLint y, GLsizei width, GLsizei height); | 301 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments,
GLint x, GLint y, GLsizei width, GLsizei height); |
| 304 void readBuffer(GLenum mode); | 302 void readBuffer(GLenum mode); |
| 305 | 303 |
| 306 /* Renderbuffer objects */ | 304 /* Renderbuffer objects */ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 /* Vertex Array Objects */ | 454 /* Vertex Array Objects */ |
| 457 WebGLVertexArrayObject createVertexArray(); | 455 WebGLVertexArrayObject createVertexArray(); |
| 458 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 456 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 459 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 457 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 460 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 458 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 461 | 459 |
| 462 /* Reading */ | 460 /* Reading */ |
| 463 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 461 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 464 }; | 462 }; |
| 465 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 463 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |