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

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

Issue 1387743002: Fixed expando-loss.html test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review feedback from haraken. Created 5 years, 2 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; 467 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240;
468 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; 468 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
469 const GLenum CONTEXT_LOST_WEBGL = 0x9242; 469 const GLenum CONTEXT_LOST_WEBGL = 0x9242;
470 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; 470 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
471 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; 471 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;
472 472
473 readonly attribute GLsizei drawingBufferWidth; 473 readonly attribute GLsizei drawingBufferWidth;
474 readonly attribute GLsizei drawingBufferHeight; 474 readonly attribute GLsizei drawingBufferHeight;
475 475
476 void activeTexture(GLenum texture); 476 void activeTexture(GLenum texture);
477 void attachShader(WebGLProgram? program, WebGLShader? shader); 477 [CallWith=ScriptState] void attachShader(WebGLProgram? program, WebGLShader? shader);
478 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name) ; 478 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name) ;
479 void bindBuffer(GLenum target, WebGLBuffer? buffer); 479 [CallWith=ScriptState] void bindBuffer(GLenum target, WebGLBuffer? buffer);
480 void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer); 480 [CallWith=ScriptState] void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer);
481 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer); 481 [CallWith=ScriptState] void bindRenderbuffer(GLenum target, WebGLRenderbuffe r? renderbuffer);
482 void bindTexture(GLenum target, WebGLTexture? texture); 482 [CallWith=ScriptState] void bindTexture(GLenum target, WebGLTexture? texture );
483 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ; 483 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ;
484 void blendEquation(GLenum mode); 484 void blendEquation(GLenum mode);
485 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); 485 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
486 void blendFunc(GLenum sfactor, GLenum dfactor); 486 void blendFunc(GLenum sfactor, GLenum dfactor);
487 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 487 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
488 // FIXME: should be union type 488 // FIXME: should be union type
489 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 489 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172
490 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); 490 void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
491 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); 491 void bufferData(GLenum target, ArrayBufferView data, GLenum usage);
492 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); 492 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage);
(...skipping 28 matching lines...) Expand all
521 void deleteBuffer(WebGLBuffer? buffer); 521 void deleteBuffer(WebGLBuffer? buffer);
522 void deleteFramebuffer(WebGLFramebuffer? framebuffer); 522 void deleteFramebuffer(WebGLFramebuffer? framebuffer);
523 void deleteProgram(WebGLProgram? program); 523 void deleteProgram(WebGLProgram? program);
524 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); 524 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer);
525 void deleteShader(WebGLShader? shader); 525 void deleteShader(WebGLShader? shader);
526 void deleteTexture(WebGLTexture? texture); 526 void deleteTexture(WebGLTexture? texture);
527 527
528 void depthFunc(GLenum func); 528 void depthFunc(GLenum func);
529 void depthMask(GLboolean flag); 529 void depthMask(GLboolean flag);
530 void depthRange(GLclampf zNear, GLclampf zFar); 530 void depthRange(GLclampf zNear, GLclampf zFar);
531 void detachShader(WebGLProgram? program, WebGLShader? shader); 531 [CallWith=ScriptState] void detachShader(WebGLProgram? program, WebGLShader? shader);
532 void disable(GLenum cap); 532 void disable(GLenum cap);
533 void disableVertexAttribArray(GLuint index); 533 void disableVertexAttribArray(GLuint index);
534 void drawArrays(GLenum mode, GLint first, GLsizei count); 534 void drawArrays(GLenum mode, GLint first, GLsizei count);
535 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); 535 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
536 536
537 void enable(GLenum cap); 537 void enable(GLenum cap);
538 void enableVertexAttribArray(GLuint index); 538 void enableVertexAttribArray(GLuint index);
539 void finish(); 539 void finish();
540 void flush(); 540 void flush();
541 void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum render buffertarget, WebGLRenderbuffer? renderbuffer); 541 [CallWith=ScriptState] void framebufferRenderbuffer(GLenum target, GLenum at tachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer);
542 void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget , WebGLTexture? texture, GLint level); 542 [CallWith=ScriptState] void framebufferTexture2D(GLenum target, GLenum attac hment, GLenum textarget, WebGLTexture? texture, GLint level);
543 void frontFace(GLenum mode); 543 void frontFace(GLenum mode);
544 void generateMipmap(GLenum target); 544 void generateMipmap(GLenum target);
545 545
546 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index); 546 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index);
547 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index); 547 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index);
548 548
549 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program); 549 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program);
550 550
551 GLint getAttribLocation(WebGLProgram? program, DOMString name); 551 GLint getAttribLocation(WebGLProgram? program, DOMString name);
552 552
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In t32Array v); 675 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In t32Array v);
676 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); 676 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v);
677 677
678 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 678 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
679 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 679 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
680 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 680 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
681 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 681 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
682 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array); 682 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
683 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array); 683 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
684 684
685 void useProgram(WebGLProgram? program); 685 [CallWith=ScriptState] void useProgram(WebGLProgram? program);
686 void validateProgram(WebGLProgram? program); 686 void validateProgram(WebGLProgram? program);
687 687
688 void vertexAttrib1f(GLuint indx, GLfloat x); 688 void vertexAttrib1f(GLuint indx, GLfloat x);
689 void vertexAttrib1fv(GLuint indx, Float32Array values); 689 void vertexAttrib1fv(GLuint indx, Float32Array values);
690 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); 690 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values);
691 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); 691 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y);
692 void vertexAttrib2fv(GLuint indx, Float32Array values); 692 void vertexAttrib2fv(GLuint indx, Float32Array values);
693 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); 693 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values);
694 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); 694 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
695 void vertexAttrib3fv(GLuint indx, Float32Array values); 695 void vertexAttrib3fv(GLuint indx, Float32Array values);
696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); 696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values);
697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ; 697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ;
698 void vertexAttrib4fv(GLuint indx, Float32Array values); 698 void vertexAttrib4fv(GLuint indx, Float32Array values);
699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); 699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values);
700 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized, 700 [CallWith=ScriptState] void vertexAttribPointer(GLuint indx, GLint size, GLe num type, GLboolean normalized,
701 GLsizei stride, GLintptr offset); 701 GLsizei stride, GLintptr off set);
702 702
703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); 703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
704 }; 704 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698