| 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 RuntimeEnabled=UnsafeES3APIs, | |
| 10 NoInterfaceObject, | 9 NoInterfaceObject, |
| 11 ] interface WebGL2RenderingContextBase { | 10 ] interface WebGL2RenderingContextBase { |
| 12 const GLenum READ_BUFFER = 0x0C02; | 11 const GLenum READ_BUFFER = 0x0C02; |
| 13 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; | 12 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; |
| 14 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; | 13 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; |
| 15 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; | 14 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; |
| 16 const GLenum PACK_ROW_LENGTH = 0x0D02; | 15 const GLenum PACK_ROW_LENGTH = 0x0D02; |
| 17 const GLenum PACK_SKIP_ROWS = 0x0D03; | 16 const GLenum PACK_SKIP_ROWS = 0x0D03; |
| 18 const GLenum PACK_SKIP_PIXELS = 0x0D04; | 17 const GLenum PACK_SKIP_PIXELS = 0x0D04; |
| 19 const GLenum COLOR = 0x1800; | 18 const GLenum COLOR = 0x1800; |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 /* Vertex Array Objects */ | 445 /* Vertex Array Objects */ |
| 447 WebGLVertexArrayObject createVertexArray(); | 446 WebGLVertexArrayObject createVertexArray(); |
| 448 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); | 447 void deleteVertexArray(WebGLVertexArrayObject? vertexArray); |
| 449 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); | 448 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); |
| 450 void bindVertexArray(WebGLVertexArrayObject? vertexArray); | 449 void bindVertexArray(WebGLVertexArrayObject? vertexArray); |
| 451 | 450 |
| 452 /* Reading */ | 451 /* Reading */ |
| 453 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); | 452 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, GLintptr offset); |
| 454 }; | 453 }; |
| 455 WebGL2RenderingContextBase implements WebGLRenderingContextBase; | 454 WebGL2RenderingContextBase implements WebGLRenderingContextBase; |
| OLD | NEW |