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

Side by Side Diff: tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate

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 | « tools/dom/scripts/systemhtml.py ('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
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
4
5 part of $LIBRARYNAME;
6
7 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
8 $!MEMBERS
9
10 /**
11 * Sets the currently bound texture to [data].
12 *
13 * [data] can be either an [ImageElement], a
14 * [CanvasElement], a [VideoElement], or an [ImageData] object.
15 *
16 * To use [texImage2d] with a TypedData object, use [texImage2dTyped].
17 *
18 */
19 @DomName('WebGLRenderingContext.texImage2D')
20 $if DART2JS
21 @JSName('texImage2D')
22 void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
23 int format, int type, data) native;
24 $else
25 void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
26 int format, int type, data) {
27 _texImage2D(targetTexture, levelOfDetail, internalFormat,
28 format, type, data);
29 }
30 $endif
31
32 /**
33 * Sets the currently bound texture to [data].
34 */
35 $if DART2JS
36 @JSName('texImage2D')
37 void texImage2DTyped(int targetTexture, int levelOfDetail,
38 int internalFormat, int width, int height, int border, int format,
39 int type, TypedData data) native;
40 $else
41 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
42 int width, int height, int border, int format, int type, TypedData data) {
43 _texImage2D(targetTexture, levelOfDetail, internalFormat,
44 width, height, border, format, type, data);
45 }
46 $endif
47
48 /**
49 * Updates a sub-rectangle of the currently bound texture to [data].
50 *
51 * [data] can be either an [ImageElement], a
52 * [CanvasElement], a [VideoElement], or an [ImageData] object.
53 *
54 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped].
55 *
56 */
57 @DomName('WebGLRenderingContext.texSubImage2D')
58 $if DART2JS
59 @JSName('texSubImage2D')
60 void texSubImage2D(int targetTexture, int levelOfDetail, int internalFormat,
61 int format, int type, data) native;
62 $else
63 void texSubImage2D(int targetTexture, int levelOfDetail, int internalFormat,
64 int format, int type, data) {
65 _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
66 format, type, data);
67 }
68 $endif
69
70 /**
71 * Updates a sub-rectangle of the currently bound texture to [data].
72 */
73 $if DART2JS
74 @JSName('texSubImage2D')
75 void texSubImage2DTyped(int targetTexture, int levelOfDetail,
76 int internalFormat, int width, int height, int border, int format,
77 int type, TypedData data) native;
78 $else
79 void texSubImage2DTyped(int targetTexture, int levelOfDetail,
80 int internalFormat, int width, int height, int border, int format,
81 int type, TypedData data) {
82 _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
83 width, height, border, format, type, data);
84 }
85 $endif
86 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698