Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(793)

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl

Issue 1873323002: Have bindings layer assume and insist that all interface types are GCed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 unsigned long GLenum; 5 typedef unsigned long GLenum;
6 typedef boolean GLboolean; 6 typedef boolean GLboolean;
7 typedef unsigned long GLbitfield; 7 typedef unsigned long GLbitfield;
8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type. 8 typedef byte GLbyte; // 'byte' should be a signed 8 bit type.
9 typedef short GLshort; 9 typedef short GLshort;
10 typedef long GLint; 10 typedef long GLint;
11 typedef long GLsizei; 11 typedef long GLsizei;
12 typedef long long GLintptr; 12 typedef long long GLintptr;
13 typedef long long GLsizeiptr; 13 typedef long long GLsizeiptr;
14 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. 14 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type.
15 typedef unsigned short GLushort; 15 typedef unsigned short GLushort;
16 typedef unsigned long GLuint; 16 typedef unsigned long GLuint;
17 typedef unrestricted float GLfloat; 17 typedef unrestricted float GLfloat;
18 typedef unrestricted float GLclampf; 18 typedef unrestricted float GLclampf;
19 typedef long long GLint64; 19 typedef long long GLint64;
20 20
21 [ 21 [
22 RuntimeEnabled=UnsafeES3APIs, 22 RuntimeEnabled=UnsafeES3APIs,
23 NoInterfaceObject, 23 NoInterfaceObject,
24 GarbageCollected,
25 ] interface WebGL2RenderingContextBase { 24 ] interface WebGL2RenderingContextBase {
26 const GLenum READ_BUFFER = 0x0C02; 25 const GLenum READ_BUFFER = 0x0C02;
27 const GLenum UNPACK_ROW_LENGTH = 0x0CF2; 26 const GLenum UNPACK_ROW_LENGTH = 0x0CF2;
28 const GLenum UNPACK_SKIP_ROWS = 0x0CF3; 27 const GLenum UNPACK_SKIP_ROWS = 0x0CF3;
29 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4; 28 const GLenum UNPACK_SKIP_PIXELS = 0x0CF4;
30 const GLenum PACK_ROW_LENGTH = 0x0D02; 29 const GLenum PACK_ROW_LENGTH = 0x0D02;
31 const GLenum PACK_SKIP_ROWS = 0x0D03; 30 const GLenum PACK_SKIP_ROWS = 0x0D03;
32 const GLenum PACK_SKIP_PIXELS = 0x0D04; 31 const GLenum PACK_SKIP_PIXELS = 0x0D04;
33 const GLenum COLOR = 0x1800; 32 const GLenum COLOR = 0x1800;
34 const GLenum DEPTH = 0x1801; 33 const GLenum DEPTH = 0x1801;
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 /* Vertex Array Objects */ 440 /* Vertex Array Objects */
442 WebGLVertexArrayObject createVertexArray(); 441 WebGLVertexArrayObject createVertexArray();
443 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array); 442 [CallWith=ScriptState] void deleteVertexArray(WebGLVertexArrayObject? vertex Array);
444 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray); 443 GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
445 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray); 444 [CallWith=ScriptState] void bindVertexArray(WebGLVertexArrayObject? vertexAr ray);
446 445
447 /* Reading */ 446 /* Reading */
448 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset); 447 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, GLintptr offset);
449 }; 448 };
450 WebGL2RenderingContextBase implements WebGLRenderingContextBase; 449 WebGL2RenderingContextBase implements WebGLRenderingContextBase;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698