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

Side by Side Diff: sdk/lib/web_gl/dartium/web_gl_dartium.dart

Issue 17738007: Removed overloads for WebGLRenderingContext.texImage2d. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/web_gl/dart2js/web_gl_dart2js.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.web_gl; 1 library dart.dom.web_gl;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 947
948 // WARNING: Do not edit - generated code. 948 // WARNING: Do not edit - generated code.
949 949
950 950
951 @DocsEditable() 951 @DocsEditable()
952 @DomName('WebGLRenderbuffer') 952 @DomName('WebGLRenderbuffer')
953 @Unstable() 953 @Unstable()
954 class Renderbuffer extends NativeFieldWrapperClass1 { 954 class Renderbuffer extends NativeFieldWrapperClass1 {
955 955
956 } 956 }
957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 957 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
958 // for details. All rights reserved. Use of this source code is governed by a 958 // for details. All rights reserved. Use of this source code is governed by a
959 // BSD-style license that can be found in the LICENSE file. 959 // BSD-style license that can be found in the LICENSE file.
960 960
961 // WARNING: Do not edit - generated code.
962 961
963
964 @DocsEditable()
965 @DomName('WebGLRenderingContext') 962 @DomName('WebGLRenderingContext')
966 @SupportedBrowser(SupportedBrowser.CHROME) 963 @SupportedBrowser(SupportedBrowser.CHROME)
967 @SupportedBrowser(SupportedBrowser.FIREFOX) 964 @SupportedBrowser(SupportedBrowser.FIREFOX)
968 @Experimental() 965 @Experimental()
969 @Unstable() 966 @Unstable()
970 class RenderingContext extends CanvasRenderingContext { 967 class RenderingContext extends CanvasRenderingContext {
971 // To suppress missing implicit constructor warnings. 968 // To suppress missing implicit constructor warnings.
972 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } 969 factory RenderingContext._() { throw new UnsupportedError("Not supported"); }
973 970
974 /// Checks if this type is supported on the current platform. 971 /// Checks if this type is supported on the current platform.
(...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback"; 2586 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback";
2590 2587
2591 @DomName('WebGLRenderingContext.stencilOp') 2588 @DomName('WebGLRenderingContext.stencilOp')
2592 @DocsEditable() 2589 @DocsEditable()
2593 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback"; 2590 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback";
2594 2591
2595 @DomName('WebGLRenderingContext.stencilOpSeparate') 2592 @DomName('WebGLRenderingContext.stencilOpSeparate')
2596 @DocsEditable() 2593 @DocsEditable()
2597 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback"; 2594 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback";
2598 2595
2599 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, TypedData pixels]) { 2596 void _texImage2D(int target, int level, int internalformat, int format_OR_widt h, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format , int type, TypedData pixels]) {
2600 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (format is int || format == null) && (border_OR_canvas_OR_image_OR_pixels_OR _video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && (heigh t_OR_type is int || height_OR_type == null) && (format_OR_width is int || format _OR_width == null) && (internalformat is int || internalformat == null) && (leve l is int || level == null) && (target is int || target == null)) { 2597 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (format is int || format == null) && (border_OR_canvas_OR_image_OR_pixels_OR _video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && (heigh t_OR_type is int || height_OR_type == null) && (format_OR_width is int || format _OR_width == null) && (internalformat is int || internalformat == null) && (leve l is int || level == null) && (target is int || target == null)) {
2601 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 2598 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
2602 return; 2599 return;
2603 } 2600 }
2604 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (inte rnalformat is int || internalformat == null) && (level is int || level == null) && (target is int || target == null) && format == null && type == null && pixels == null) { 2601 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (inte rnalformat is int || internalformat == null) && (level is int || level == null) && (target is int || target == null) && format == null && type == null && pixels == null) {
2605 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2602 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2606 return; 2603 return;
2607 } 2604 }
2608 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i nternalformat is int || internalformat == null) && (level is int || level == nul l) && (target is int || target == null) && format == null && type == null && pix els == null) { 2605 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i nternalformat is int || internalformat == null) && (level is int || level == nul l) && (target is int || target == null) && format == null && type == null && pix els == null) {
2609 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2606 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
(...skipping 21 matching lines...) Expand all
2631 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback"; 2628 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback";
2632 2629
2633 @DomName('WebGLRenderingContext.texParameterf') 2630 @DomName('WebGLRenderingContext.texParameterf')
2634 @DocsEditable() 2631 @DocsEditable()
2635 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback"; 2632 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback";
2636 2633
2637 @DomName('WebGLRenderingContext.texParameteri') 2634 @DomName('WebGLRenderingContext.texParameteri')
2638 @DocsEditable() 2635 @DocsEditable()
2639 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback"; 2636 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback";
2640 2637
2641 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, TypedData pixels]) { 2638 void _texSubImageImage2D(int target, int level, int xoffset, int yoffset, int format_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_vide o, [int type, TypedData pixels]) {
2642 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format_OR_ image_OR_pixels_OR_video == null) && (height_OR_type is int || height_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoffset is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null)) { 2639 if ((pixels is TypedData || pixels == null) && (type is int || type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format_OR_ image_OR_pixels_OR_video == null) && (height_OR_type is int || height_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoffset is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null)) {
2643 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 2640 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
2644 return; 2641 return;
2645 } 2642 }
2646 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoff set is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null) && type == null && pixels == null) { 2643 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_ OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoff set is int || yoffset == null) && (xoffset is int || xoffset == null) && (level is int || level == null) && (target is int || target == null) && type == null && pixels == null) {
2647 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 2644 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2648 return; 2645 return;
2649 } 2646 }
2650 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev el is int || level == null) && (target is int || target == null) && type == null && pixels == null) { 2647 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev el is int || level == null) && (target is int || target == null) && type == null && pixels == null) {
2651 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 2648 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 void vertexAttrib4fv(int indx, Float32List values) native "WebGLRenderingConte xt_vertexAttrib4fv_Callback"; 2786 void vertexAttrib4fv(int indx, Float32List values) native "WebGLRenderingConte xt_vertexAttrib4fv_Callback";
2790 2787
2791 @DomName('WebGLRenderingContext.vertexAttribPointer') 2788 @DomName('WebGLRenderingContext.vertexAttribPointer')
2792 @DocsEditable() 2789 @DocsEditable()
2793 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native "WebGLRenderingContext_vertexAttribPointer_Callback"; 2790 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native "WebGLRenderingContext_vertexAttribPointer_Callback";
2794 2791
2795 @DomName('WebGLRenderingContext.viewport') 2792 @DomName('WebGLRenderingContext.viewport')
2796 @DocsEditable() 2793 @DocsEditable()
2797 void viewport(int x, int y, int width, int height) native "WebGLRenderingConte xt_viewport_Callback"; 2794 void viewport(int x, int y, int width, int height) native "WebGLRenderingConte xt_viewport_Callback";
2798 2795
2796
2797 /**
2798 * Sets the currently bound texture to [data].
2799 *
2800 * [data] can be either an [ImageElement], a
2801 * [CanvasElement], a [VideoElement], or an [ImageData] object.
2802 *
2803 * To use [texImage2d] with a TypedData object, use [texImage2dTyped].
2804 *
2805 */
2806 @DomName('WebGLRenderingContext.texImage2D')
2807 void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
2808 int format, int type, data) {
2809 _texImage2D(targetTexture, levelOfDetail, internalFormat,
2810 format, type, data);
2811 }
2812
2813 /**
2814 * Sets the currently bound texture to [data].
2815 */
2816 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
2817 int width, int height, int border, int format, int type, TypedData data) {
2818 _texImage2D(targetTexture, levelOfDetail, internalFormat,
2819 width, height, border, format, type, data);
2820 }
2821
2822 /**
2823 * Updates a sub-rectangle of the currently bound texture to [data].
2824 *
2825 * [data] can be either an [ImageElement], a
2826 * [CanvasElement], a [VideoElement], or an [ImageData] object.
2827 *
2828 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped].
2829 *
2830 */
2831 @DomName('WebGLRenderingContext.texSubImage2D')
2832 void texSubImage2D(int targetTexture, int levelOfDetail, int internalFormat,
2833 int format, int type, data) {
2834 _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
2835 format, type, data);
2836 }
2837
2838 /**
2839 * Updates a sub-rectangle of the currently bound texture to [data].
2840 */
2841 void texSubImage2DTyped(int targetTexture, int levelOfDetail,
2842 int internalFormat, int width, int height, int border, int format,
2843 int type, TypedData data) {
2844 _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
2845 width, height, border, format, type, data);
2846 }
2799 } 2847 }
2800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2801 // for details. All rights reserved. Use of this source code is governed by a 2849 // for details. All rights reserved. Use of this source code is governed by a
2802 // BSD-style license that can be found in the LICENSE file. 2850 // BSD-style license that can be found in the LICENSE file.
2803 2851
2804 // WARNING: Do not edit - generated code. 2852 // WARNING: Do not edit - generated code.
2805 2853
2806 2854
2807 @DocsEditable() 2855 @DocsEditable()
2808 @DomName('WebGLShader') 2856 @DomName('WebGLShader')
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2864 // WARNING: Do not edit - generated code. 2912 // WARNING: Do not edit - generated code.
2865 2913
2866 2914
2867 @DocsEditable() 2915 @DocsEditable()
2868 @DomName('WebGLVertexArrayObjectOES') 2916 @DomName('WebGLVertexArrayObjectOES')
2869 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 2917 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
2870 @Experimental() // experimental 2918 @Experimental() // experimental
2871 class VertexArrayObject extends NativeFieldWrapperClass1 { 2919 class VertexArrayObject extends NativeFieldWrapperClass1 {
2872 2920
2873 } 2921 }
OLDNEW
« no previous file with comments | « sdk/lib/web_gl/dart2js/web_gl_dart2js.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698