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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContextBase.idl

Issue 1091543002: IDL: Add [FlexibleArrayBufferView] and use for bufferSubData Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-includes-for-type-tuning
Patch Set: add warning about the storage's life-time Created 5 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
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
493 void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data); 493 void bufferSubData(GLenum target, GLintptr offset, [FlexibleArrayBufferView] ArrayBufferView data);
494 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data); 494 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data);
495 495
496 GLenum checkFramebufferStatus(GLenum target); 496 GLenum checkFramebufferStatus(GLenum target);
497 void clear(GLbitfield mask); 497 void clear(GLbitfield mask);
498 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ; 498 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ;
499 void clearDepth(GLclampf depth); 499 void clearDepth(GLclampf depth);
500 void clearStencil(GLint s); 500 void clearStencil(GLint s);
501 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha); 501 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha);
502 void compileShader(WebGLShader? shader); 502 void compileShader(WebGLShader? shader);
503 503
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized,
701 GLsizei stride, GLintptr offset); 701 GLsizei stride, GLintptr offset);
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
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698