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

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

Issue 2273683003: Use visitDOMWrapper to preserve WebGL JS object wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style Created 4 years, 3 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; 465 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240;
466 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; 466 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
467 const GLenum CONTEXT_LOST_WEBGL = 0x9242; 467 const GLenum CONTEXT_LOST_WEBGL = 0x9242;
468 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; 468 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
469 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; 469 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;
470 470
471 readonly attribute GLsizei drawingBufferWidth; 471 readonly attribute GLsizei drawingBufferWidth;
472 readonly attribute GLsizei drawingBufferHeight; 472 readonly attribute GLsizei drawingBufferHeight;
473 473
474 void activeTexture(GLenum texture); 474 void activeTexture(GLenum texture);
475 [CallWith=ScriptState] void attachShader(WebGLProgram? program, WebGLShader? shader); 475 void attachShader(WebGLProgram? program, WebGLShader? shader);
476 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name) ; 476 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name) ;
477 [CallWith=ScriptState] void bindBuffer(GLenum target, WebGLBuffer? buffer); 477 void bindBuffer(GLenum target, WebGLBuffer? buffer);
478 [CallWith=ScriptState] void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer); 478 void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer);
479 [CallWith=ScriptState] void bindRenderbuffer(GLenum target, WebGLRenderbuffe r? renderbuffer); 479 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer);
480 [CallWith=ScriptState] void bindTexture(GLenum target, WebGLTexture? texture ); 480 void bindTexture(GLenum target, WebGLTexture? texture);
481 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ; 481 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ;
482 void blendEquation(GLenum mode); 482 void blendEquation(GLenum mode);
483 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); 483 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
484 void blendFunc(GLenum sfactor, GLenum dfactor); 484 void blendFunc(GLenum sfactor, GLenum dfactor);
485 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 485 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
486 // FIXME: should be union type 486 // FIXME: should be union type
487 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 487 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172
488 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); 488 void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
489 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); 489 void bufferData(GLenum target, ArrayBufferView data, GLenum usage);
490 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); 490 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage);
(...skipping 28 matching lines...) Expand all
519 void deleteBuffer(WebGLBuffer? buffer); 519 void deleteBuffer(WebGLBuffer? buffer);
520 void deleteFramebuffer(WebGLFramebuffer? framebuffer); 520 void deleteFramebuffer(WebGLFramebuffer? framebuffer);
521 void deleteProgram(WebGLProgram? program); 521 void deleteProgram(WebGLProgram? program);
522 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); 522 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer);
523 void deleteShader(WebGLShader? shader); 523 void deleteShader(WebGLShader? shader);
524 void deleteTexture(WebGLTexture? texture); 524 void deleteTexture(WebGLTexture? texture);
525 525
526 void depthFunc(GLenum func); 526 void depthFunc(GLenum func);
527 void depthMask(GLboolean flag); 527 void depthMask(GLboolean flag);
528 void depthRange(GLclampf zNear, GLclampf zFar); 528 void depthRange(GLclampf zNear, GLclampf zFar);
529 [CallWith=ScriptState] void detachShader(WebGLProgram? program, WebGLShader? shader); 529 void detachShader(WebGLProgram? program, WebGLShader? shader);
530 void disable(GLenum cap); 530 void disable(GLenum cap);
531 void disableVertexAttribArray(GLuint index); 531 void disableVertexAttribArray(GLuint index);
532 void drawArrays(GLenum mode, GLint first, GLsizei count); 532 void drawArrays(GLenum mode, GLint first, GLsizei count);
533 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); 533 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
534 534
535 void enable(GLenum cap); 535 void enable(GLenum cap);
536 void enableVertexAttribArray(GLuint index); 536 void enableVertexAttribArray(GLuint index);
537 void finish(); 537 void finish();
538 void flush(); 538 void flush();
539 [CallWith=ScriptState] void framebufferRenderbuffer(GLenum target, GLenum at tachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); 539 void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum render buffertarget, WebGLRenderbuffer? renderbuffer);
540 [CallWith=ScriptState] void framebufferTexture2D(GLenum target, GLenum attac hment, GLenum textarget, WebGLTexture? texture, GLint level); 540 void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget , WebGLTexture? texture, GLint level);
541 void frontFace(GLenum mode); 541 void frontFace(GLenum mode);
542 void generateMipmap(GLenum target); 542 void generateMipmap(GLenum target);
543 543
544 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index); 544 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index);
545 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index); 545 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index);
546 546
547 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program); 547 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program);
548 548
549 GLint getAttribLocation(WebGLProgram? program, DOMString name); 549 GLint getAttribLocation(WebGLProgram? program, DOMString name);
550 550
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In t32Array v); 679 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In t32Array v);
680 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); 680 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v);
681 681
682 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 682 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
683 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 683 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
684 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 684 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
685 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 685 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
686 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 686 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
687 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 687 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
688 688
689 [CallWith=ScriptState] void useProgram(WebGLProgram? program); 689 void useProgram(WebGLProgram? program);
690 void validateProgram(WebGLProgram? program); 690 void validateProgram(WebGLProgram? program);
691 691
692 void vertexAttrib1f(GLuint indx, GLfloat x); 692 void vertexAttrib1f(GLuint indx, GLfloat x);
693 void vertexAttrib1fv(GLuint indx, Float32Array values); 693 void vertexAttrib1fv(GLuint indx, Float32Array values);
694 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); 694 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values);
695 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); 695 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y);
696 void vertexAttrib2fv(GLuint indx, Float32Array values); 696 void vertexAttrib2fv(GLuint indx, Float32Array values);
697 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); 697 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values);
698 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); 698 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
699 void vertexAttrib3fv(GLuint indx, Float32Array values); 699 void vertexAttrib3fv(GLuint indx, Float32Array values);
700 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); 700 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values);
701 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ; 701 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ;
702 void vertexAttrib4fv(GLuint indx, Float32Array values); 702 void vertexAttrib4fv(GLuint indx, Float32Array values);
703 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); 703 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values);
704 [CallWith=ScriptState] void vertexAttribPointer(GLuint indx, GLint size, GLe num type, GLboolean normalized, 704 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized,
705 GLsizei stride, GLintptr off set); 705 GLsizei stride, GLintptr off set);
706 706
707 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); 707 void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
708 }; 708 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698