| 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 typedef unsigned long long GLuint64; | 6 typedef unsigned long long GLuint64; |
| 7 | 7 |
| 8 [ | 8 [ |
| 9 NoInterfaceObject, | 9 NoInterfaceObject, |
| 10 ] interface WebGL2RenderingContextBase { | 10 ] interface WebGL2RenderingContextBase { |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe
num type, ArrayBufferView pixels, optional GLuint srcOffset = 0); | 329 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLe
num type, ArrayBufferView pixels, optional GLuint srcOffset = 0); |
| 330 | 330 |
| 331 // TODO(zmo): Obsolete, remove after WebGL2 conformance tests are updated. | 331 // TODO(zmo): Obsolete, remove after WebGL2 conformance tests are updated. |
| 332 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint zoffset, GLenum format, GLenum type, ImageData data); | 332 void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint zoffset, GLenum format, GLenum type, ImageData data); |
| 333 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLImageElement i
mage); | 333 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLImageElement i
mage); |
| 334 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLCanvasElement
canvas); | 334 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLCanvasElement
canvas); |
| 335 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLVideoElement v
ideo); | 335 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, HTMLVideoElement v
ideo); |
| 336 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, ImageBitmap bitmap
); | 336 [RaisesException] void texSubImage3D(GLenum target, GLint level, GLint xoffs
et, GLint yoffset, GLint zoffset, GLenum format, GLenum type, ImageBitmap bitmap
); |
| 337 | 337 |
| 338 void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); | 338 void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); |
| 339 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLsizei depth, GLint border, ArrayBufferView dat
a); | 339 |
| 340 void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum f
ormat, ArrayBufferView data); | 340 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, |
| 341 GLsizei width, GLsizei height, GLint border, |
| 342 ArrayBufferView data, GLuint srcOffset, |
| 343 optional GLuint srcLengthOverride = 0); |
| 344 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, |
| 345 GLsizei width, GLsizei height, GLenum format, |
| 346 ArrayBufferView data, GLuint srcOffset, |
| 347 optional GLuint srcLengthOverride = 0); |
| 348 void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLsizei depth, GLint border, ArrayBufferView dat
a, optional GLuint srcOffset = 0, optional GLuint srcLengthOverride = 0); |
| 349 void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum f
ormat, ArrayBufferView data, optional GLuint srcOffset = 0, optional GLuint srcL
engthOverride = 0); |
| 341 | 350 |
| 342 /* Programs and shaders */ | 351 /* Programs and shaders */ |
| 343 GLint getFragDataLocation(WebGLProgram? program, DOMString name); | 352 GLint getFragDataLocation(WebGLProgram? program, DOMString name); |
| 344 | 353 |
| 345 /* Uniforms and attributes */ | 354 /* Uniforms and attributes */ |
| 346 void uniform1ui(WebGLUniformLocation? location, GLuint v0); | 355 void uniform1ui(WebGLUniformLocation? location, GLuint v0); |
| 347 void uniform2ui(WebGLUniformLocation? location, GLuint v0, GLuint v1); | 356 void uniform2ui(WebGLUniformLocation? location, GLuint v0, GLuint v1); |
| 348 void uniform3ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2); | 357 void uniform3ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2); |
| 349 void uniform4ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2, GLuint v3); | 358 void uniform4ui(WebGLUniformLocation? location, GLuint v0, GLuint v1, GLuint
v2, GLuint v3); |
| 350 void uniform1uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); | 359 void uniform1uiv(WebGLUniformLocation? location, [FlexibleArrayBufferView] U
int32Array v); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 DOMString? getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBl
ockIndex); | 451 DOMString? getActiveUniformBlockName(WebGLProgram? program, GLuint uniformBl
ockIndex); |
| 443 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL
uint uniformBlockBinding); | 452 void uniformBlockBinding(WebGLProgram? program, GLuint uniformBlockIndex, GL
uint uniformBlockBinding); |
| 444 | 453 |
| 445 /* Vertex Array Objects */ | 454 /* Vertex Array Objects */ |
| 446 WebGLVertexArrayObject createVertexArray(); | 455 WebGLVertexArrayObject createVertexArray(); |
| 447 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 456 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 448 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 457 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 449 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 458 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 450 | 459 |
| 451 /* Reading */ | 460 /* Reading */ |
| 461 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView dstData, GLintptr offset); |
| 452 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); |
| 453 }; | 463 }; |
| 454 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 464 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |