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

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

Issue 2806803003: Make OffscreenCanvas WebGL(2) context consider taintedness of image source (Closed)
Patch Set: rebase Created 3 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 /* 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 // Supported forms: 614 // Supported forms:
615 // FIXME: should be union type 615 // FIXME: should be union type
616 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 616 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172
617 void texImage2D( 617 void texImage2D(
618 GLenum target, GLint level, GLint internalformat, 618 GLenum target, GLint level, GLint internalformat,
619 GLsizei width, GLsizei height, GLint border, 619 GLsizei width, GLsizei height, GLint border,
620 GLenum format, GLenum type, ArrayBufferView? pixels); 620 GLenum format, GLenum type, ArrayBufferView? pixels);
621 void texImage2D( 621 void texImage2D(
622 GLenum target, GLint level, GLint internalformat, 622 GLenum target, GLint level, GLint internalformat,
623 GLenum format, GLenum type, ImageData pixels); 623 GLenum format, GLenum type, ImageData pixels);
624 [RaisesException] void texImage2D( 624 [CallWith=ExecutionContext, RaisesException] void texImage2D(
625 GLenum target, GLint level, GLint internalformat, 625 GLenum target, GLint level, GLint internalformat,
626 GLenum format, GLenum type, HTMLImageElement image); 626 GLenum format, GLenum type, HTMLImageElement image);
627 [RaisesException] void texImage2D( 627 [CallWith=ExecutionContext, RaisesException] void texImage2D(
628 GLenum target, GLint level, GLint internalformat, 628 GLenum target, GLint level, GLint internalformat,
629 GLenum format, GLenum type, HTMLCanvasElement canvas); 629 GLenum format, GLenum type, HTMLCanvasElement canvas);
630 [RaisesException] void texImage2D( 630 [CallWith=ExecutionContext, RaisesException] void texImage2D(
631 GLenum target, GLint level, GLint internalformat, 631 GLenum target, GLint level, GLint internalformat,
632 GLenum format, GLenum type, HTMLVideoElement video); 632 GLenum format, GLenum type, HTMLVideoElement video);
633 [RaisesException] void texImage2D( 633 [RaisesException] void texImage2D(
634 GLenum target, GLint level, GLint internalformat, 634 GLenum target, GLint level, GLint internalformat,
635 GLenum format, GLenum type, ImageBitmap bitmap); 635 GLenum format, GLenum type, ImageBitmap bitmap);
636 636
637 void texSubImage2D( 637 void texSubImage2D(
638 GLenum target, GLint level, GLint xoffset, GLint yoffset, 638 GLenum target, GLint level, GLint xoffset, GLint yoffset,
639 GLsizei width, GLsizei height, 639 GLsizei width, GLsizei height,
640 GLenum format, GLenum type, ArrayBufferView? pixels); 640 GLenum format, GLenum type, ArrayBufferView? pixels);
641 void texSubImage2D( 641 void texSubImage2D(
642 GLenum target, GLint level, GLint xoffset, GLint yoffset, 642 GLenum target, GLint level, GLint xoffset, GLint yoffset,
643 GLenum format, GLenum type, ImageData pixels); 643 GLenum format, GLenum type, ImageData pixels);
644 [RaisesException] void texSubImage2D( 644 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(
645 GLenum target, GLint level, GLint xoffset, GLint yoffset, 645 GLenum target, GLint level, GLint xoffset, GLint yoffset,
646 GLenum format, GLenum type, HTMLImageElement image); 646 GLenum format, GLenum type, HTMLImageElement image);
647 [RaisesException] void texSubImage2D( 647 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(
648 GLenum target, GLint level, GLint xoffset, GLint yoffset, 648 GLenum target, GLint level, GLint xoffset, GLint yoffset,
649 GLenum format, GLenum type, HTMLCanvasElement canvas); 649 GLenum format, GLenum type, HTMLCanvasElement canvas);
650 [RaisesException] void texSubImage2D( 650 [CallWith=ExecutionContext, RaisesException] void texSubImage2D(
651 GLenum target, GLint level, GLint xoffset, GLint yoffset, 651 GLenum target, GLint level, GLint xoffset, GLint yoffset,
652 GLenum format, GLenum type, HTMLVideoElement video); 652 GLenum format, GLenum type, HTMLVideoElement video);
653 [RaisesException] void texSubImage2D( 653 [RaisesException] void texSubImage2D(
654 GLenum target, GLint level, GLint xoffset, GLint yoffset, 654 GLenum target, GLint level, GLint xoffset, GLint yoffset,
655 GLenum format, GLenum type, ImageBitmap bitmap); 655 GLenum format, GLenum type, ImageBitmap bitmap);
656 656
657 void uniform1f(WebGLUniformLocation? location, GLfloat x); 657 void uniform1f(WebGLUniformLocation? location, GLfloat x);
658 void uniform1fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl oat32Array v); 658 void uniform1fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl oat32Array v);
659 void uniform1fv(WebGLUniformLocation? location, sequence<GLfloat> v); 659 void uniform1fv(WebGLUniformLocation? location, sequence<GLfloat> v);
660 void uniform1i(WebGLUniformLocation? location, GLint x); 660 void uniform1i(WebGLUniformLocation? location, GLint x);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized, 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
709 [RuntimeEnabled=ExperimentalCanvasFeatures, CallWith=ScriptState, RaisesExce ption] Promise commit(); 709 [RuntimeEnabled=ExperimentalCanvasFeatures, CallWith=ScriptState, RaisesExce ption] Promise commit();
710 }; 710 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698