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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate b/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
new file mode 100644
index 0000000000000000000000000000000000000000..893d9df418be255ec7a95cba46e1a8282a7d702e
--- /dev/null
+++ b/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
@@ -0,0 +1,86 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+part of $LIBRARYNAME;
+
+$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+$!MEMBERS
+
+ /**
+ * Sets the currently bound texture to [data].
+ *
+ * [data] can be either an [ImageElement], a
+ * [CanvasElement], a [VideoElement], or an [ImageData] object.
+ *
+ * To use [texImage2d] with a TypedData object, use [texImage2dTyped].
+ *
+ */
+ @DomName('WebGLRenderingContext.texImage2D')
+$if DART2JS
+ @JSName('texImage2D')
+ void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
+ int format, int type, data) native;
+$else
+ void texImage2D(int targetTexture, int levelOfDetail, int internalFormat,
+ int format, int type, data) {
+ _texImage2D(targetTexture, levelOfDetail, internalFormat,
+ format, type, data);
+ }
+$endif
+
+ /**
+ * Sets the currently bound texture to [data].
+ */
+$if DART2JS
+ @JSName('texImage2D')
+ void texImage2DTyped(int targetTexture, int levelOfDetail,
+ int internalFormat, int width, int height, int border, int format,
+ int type, TypedData data) native;
+$else
+ void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
+ int width, int height, int border, int format, int type, TypedData data) {
+ _texImage2D(targetTexture, levelOfDetail, internalFormat,
+ width, height, border, format, type, data);
+ }
+$endif
+
+ /**
+ * Updates a sub-rectangle of the currently bound texture to [data].
+ *
+ * [data] can be either an [ImageElement], a
+ * [CanvasElement], a [VideoElement], or an [ImageData] object.
+ *
+ * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped].
+ *
+ */
+ @DomName('WebGLRenderingContext.texSubImage2D')
+$if DART2JS
+ @JSName('texSubImage2D')
+ void texSubImage2D(int targetTexture, int levelOfDetail, int internalFormat,
+ int format, int type, data) native;
+$else
+ void texSubImage2D(int targetTexture, int levelOfDetail, int internalFormat,
+ int format, int type, data) {
+ _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
+ format, type, data);
+ }
+$endif
+
+ /**
+ * Updates a sub-rectangle of the currently bound texture to [data].
+ */
+$if DART2JS
+ @JSName('texSubImage2D')
+ void texSubImage2DTyped(int targetTexture, int levelOfDetail,
+ int internalFormat, int width, int height, int border, int format,
+ int type, TypedData data) native;
+$else
+ void texSubImage2DTyped(int targetTexture, int levelOfDetail,
+ int internalFormat, int width, int height, int border, int format,
+ int type, TypedData data) {
+ _texSubImage2D(targetTexture, levelOfDetail, internalFormat,
+ width, height, border, format, type, data);
+ }
+$endif
+}
« 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