| 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 [CallWith=ScriptState, RuntimeEnabled=ExperimentalCanvasFeatures] Promise<Ar
rayBufferView> getBufferSubDataAsync(GLenum target, GLintptr srcByteOffset, Arra
yBufferView dstData, optional GLuint dstOffset = 0, optional GLuint length = 0); |
| 295 | 296 |
| 296 /* Framebuffer objects */ | 297 /* Framebuffer objects */ |
| 297 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi
nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
; | 298 void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLi
nt dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
; |
| 298 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture?
texture, GLint level, GLint layer); | 299 void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture?
texture, GLint level, GLint layer); |
| 299 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum
internalformat, GLenum pname); | 300 [CallWith=ScriptState] any getInternalformatParameter(GLenum target, GLenum
internalformat, GLenum pname); |
| 300 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); | 301 void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments); |
| 301 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments,
GLint x, GLint y, GLsizei width, GLsizei height); | 302 void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments,
GLint x, GLint y, GLsizei width, GLsizei height); |
| 302 void readBuffer(GLenum mode); | 303 void readBuffer(GLenum mode); |
| 303 | 304 |
| 304 /* Renderbuffer objects */ | 305 /* Renderbuffer objects */ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 /* Vertex Array Objects */ | 455 /* Vertex Array Objects */ |
| 455 WebGLVertexArrayObject createVertexArray(); | 456 WebGLVertexArrayObject createVertexArray(); |
| 456 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 457 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 457 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 458 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 458 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 459 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 459 | 460 |
| 460 /* Reading */ | 461 /* Reading */ |
| 461 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 462 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 462 }; | 463 }; |
| 463 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 464 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |