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

Side by Side Diff: client/dom/generated/src/wrapping/_WebGLRenderingContextWrappingImplementation.dart

Issue 8889042: Turn on ENABLE_VIDEO to enable AudioContext.createMediaElementSource (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 class _WebGLRenderingContextWrappingImplementation extends _CanvasRenderingConte xtWrappingImplementation implements WebGLRenderingContext { 7 class _WebGLRenderingContextWrappingImplementation extends _CanvasRenderingConte xtWrappingImplementation implements WebGLRenderingContext {
8 _WebGLRenderingContextWrappingImplementation() : super() {} 8 _WebGLRenderingContextWrappingImplementation() : super() {}
9 9
10 static create__WebGLRenderingContextWrappingImplementation() native { 10 static create__WebGLRenderingContextWrappingImplementation() native {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 return; 587 return;
588 } 588 }
589 static void _stencilOp(receiver, fail, zfail, zpass) native; 589 static void _stencilOp(receiver, fail, zfail, zpass) native;
590 590
591 void stencilOpSeparate(int face, int fail, int zfail, int zpass) { 591 void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
592 _stencilOpSeparate(this, face, fail, zfail, zpass); 592 _stencilOpSeparate(this, face, fail, zfail, zpass);
593 return; 593 return;
594 } 594 }
595 static void _stencilOpSeparate(receiver, face, fail, zfail, zpass) native; 595 static void _stencilOpSeparate(receiver, face, fail, zfail, zpass) native;
596 596
597 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels, [int format = nul l, int type = null, ArrayBufferView pixels = null]) { 597 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for mat = null, int type = null, ArrayBufferView pixels = null]) {
598 if (border_OR_canvas_OR_image_OR_pixels is ImageData) { 598 if (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData) {
599 if (format === null) { 599 if (format === null) {
600 if (type === null) { 600 if (type === null) {
601 if (pixels === null) { 601 if (pixels === null) {
602 _texImage2D(this, target, level, internalformat, format_OR_width, he ight_OR_type, border_OR_canvas_OR_image_OR_pixels); 602 _texImage2D(this, target, level, internalformat, format_OR_width, he ight_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
603 return; 603 return;
604 } 604 }
605 } 605 }
606 } 606 }
607 } else { 607 } else {
608 if (border_OR_canvas_OR_image_OR_pixels is HTMLImageElement) { 608 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLImageElement) {
609 if (format === null) { 609 if (format === null) {
610 if (type === null) { 610 if (type === null) {
611 if (pixels === null) { 611 if (pixels === null) {
612 _texImage2D_2(this, target, level, internalformat, format_OR_width , height_OR_type, border_OR_canvas_OR_image_OR_pixels); 612 _texImage2D_2(this, target, level, internalformat, format_OR_width , height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
613 return; 613 return;
614 } 614 }
615 } 615 }
616 } 616 }
617 } else { 617 } else {
618 if (border_OR_canvas_OR_image_OR_pixels is HTMLCanvasElement) { 618 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLCanvasElement) {
619 if (format === null) { 619 if (format === null) {
620 if (type === null) { 620 if (type === null) {
621 if (pixels === null) { 621 if (pixels === null) {
622 _texImage2D_3(this, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels); 622 _texImage2D_3(this, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
623 return; 623 return;
624 } 624 }
625 } 625 }
626 } 626 }
627 } else { 627 } else {
628 if (border_OR_canvas_OR_image_OR_pixels is int) { 628 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLVideoElement) {
629 _texImage2D_4(this, target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels, format, type, pixels); 629 if (format === null) {
630 return; 630 if (type === null) {
631 if (pixels === null) {
632 _texImage2D_4(this, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
633 return;
634 }
635 }
636 }
637 } else {
638 if (border_OR_canvas_OR_image_OR_pixels_OR_video is int) {
639 _texImage2D_5(this, target, level, internalformat, format_OR_width , height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pi xels);
640 return;
641 }
631 } 642 }
632 } 643 }
633 } 644 }
634 } 645 }
635 throw "Incorrect number or type of arguments"; 646 throw "Incorrect number or type of arguments";
636 } 647 }
637 static void _texImage2D(receiver, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels) native; 648 static void _texImage2D(receiver, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
638 static void _texImage2D_2(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels) native; 649 static void _texImage2D_2(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
639 static void _texImage2D_3(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels) native; 650 static void _texImage2D_3(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
640 static void _texImage2D_4(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels, format, type, pixels) native; 651 static void _texImage2D_4(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
652 static void _texImage2D_5(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type , pixels) native;
641 653
642 void texParameterf(int target, int pname, num param) { 654 void texParameterf(int target, int pname, num param) {
643 _texParameterf(this, target, pname, param); 655 _texParameterf(this, target, pname, param);
644 return; 656 return;
645 } 657 }
646 static void _texParameterf(receiver, target, pname, param) native; 658 static void _texParameterf(receiver, target, pname, param) native;
647 659
648 void texParameteri(int target, int pname, int param) { 660 void texParameteri(int target, int pname, int param) {
649 _texParameteri(this, target, pname, param); 661 _texParameteri(this, target, pname, param);
650 return; 662 return;
651 } 663 }
652 static void _texParameteri(receiver, target, pname, param) native; 664 static void _texParameteri(receiver, target, pname, param) native;
653 665
654 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels, [int typ e = null, ArrayBufferView pixels = null]) { 666 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels_OR_video, [int type = null, ArrayBufferView pixels = null]) {
655 if (canvas_OR_format_OR_image_OR_pixels is ImageData) { 667 if (canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData) {
656 if (type === null) { 668 if (type === null) {
657 if (pixels === null) { 669 if (pixels === null) {
658 _texSubImage2D(this, target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels); 670 _texSubImage2D(this, target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
659 return; 671 return;
660 } 672 }
661 } 673 }
662 } else { 674 } else {
663 if (canvas_OR_format_OR_image_OR_pixels is HTMLImageElement) { 675 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLImageElement) {
664 if (type === null) { 676 if (type === null) {
665 if (pixels === null) { 677 if (pixels === null) {
666 _texSubImage2D_2(this, target, level, xoffset, yoffset, format_OR_wi dth, height_OR_type, canvas_OR_format_OR_image_OR_pixels); 678 _texSubImage2D_2(this, target, level, xoffset, yoffset, format_OR_wi dth, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
667 return; 679 return;
668 } 680 }
669 } 681 }
670 } else { 682 } else {
671 if (canvas_OR_format_OR_image_OR_pixels is HTMLCanvasElement) { 683 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLCanvasElement) {
672 if (type === null) { 684 if (type === null) {
673 if (pixels === null) { 685 if (pixels === null) {
674 _texSubImage2D_3(this, target, level, xoffset, yoffset, format_OR_ width, height_OR_type, canvas_OR_format_OR_image_OR_pixels); 686 _texSubImage2D_3(this, target, level, xoffset, yoffset, format_OR_ width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
675 return; 687 return;
676 } 688 }
677 } 689 }
678 } else { 690 } else {
679 if (canvas_OR_format_OR_image_OR_pixels is int) { 691 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLVideoElement) {
680 _texSubImage2D_4(this, target, level, xoffset, yoffset, format_OR_wi dth, height_OR_type, canvas_OR_format_OR_image_OR_pixels, type, pixels); 692 if (type === null) {
681 return; 693 if (pixels === null) {
694 _texSubImage2D_4(this, target, level, xoffset, yoffset, format_O R_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
695 return;
696 }
697 }
698 } else {
699 if (canvas_OR_format_OR_image_OR_pixels_OR_video is int) {
700 _texSubImage2D_5(this, target, level, xoffset, yoffset, format_OR_ width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixel s);
701 return;
702 }
682 } 703 }
683 } 704 }
684 } 705 }
685 } 706 }
686 throw "Incorrect number or type of arguments"; 707 throw "Incorrect number or type of arguments";
687 } 708 }
688 static void _texSubImage2D(receiver, target, level, xoffset, yoffset, format_O R_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels) native; 709 static void _texSubImage2D(receiver, target, level, xoffset, yoffset, format_O R_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
689 static void _texSubImage2D_2(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels) native; 710 static void _texSubImage2D_2(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
690 static void _texSubImage2D_3(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels) native; 711 static void _texSubImage2D_3(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
691 static void _texSubImage2D_4(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels, type, pixels) na tive; 712 static void _texSubImage2D_4(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
713 static void _texSubImage2D_5(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, p ixels) native;
692 714
693 void uniform1f(WebGLUniformLocation location, num x) { 715 void uniform1f(WebGLUniformLocation location, num x) {
694 _uniform1f(this, location, x); 716 _uniform1f(this, location, x);
695 return; 717 return;
696 } 718 }
697 static void _uniform1f(receiver, location, x) native; 719 static void _uniform1f(receiver, location, x) native;
698 720
699 void uniform1fv(WebGLUniformLocation location, Float32Array v) { 721 void uniform1fv(WebGLUniformLocation location, Float32Array v) {
700 _uniform1fv(this, location, v); 722 _uniform1fv(this, location, v);
701 return; 723 return;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 static void _vertexAttribPointer(receiver, indx, size, type, normalized, strid e, offset) native; 893 static void _vertexAttribPointer(receiver, indx, size, type, normalized, strid e, offset) native;
872 894
873 void viewport(int x, int y, int width, int height) { 895 void viewport(int x, int y, int width, int height) {
874 _viewport(this, x, y, width, height); 896 _viewport(this, x, y, width, height);
875 return; 897 return;
876 } 898 }
877 static void _viewport(receiver, x, y, width, height) native; 899 static void _viewport(receiver, x, y, width, height) native;
878 900
879 String get typeName() { return "WebGLRenderingContext"; } 901 String get typeName() { return "WebGLRenderingContext"; }
880 } 902 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698