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

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

Issue 1846803002: Fix webgl methods, properly this time (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove whitelisting of analysis failures Created 4 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
« no previous file with comments | « tests/compiler/dart2js/analyze_api_test.dart ('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
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 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 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS implements CanvasRenderingCo ntext { 7 $(ANNOTATIONS)$(NATIVESPEC)class $CLASSNAME$EXTENDS implements CanvasRenderingCo ntext {
8 $!MEMBERS 8 $!MEMBERS
9 9
10 /** 10 /**
11 * Sets the currently bound texture to [data]. 11 * Sets the currently bound texture to [data].
12 * 12 *
13 * [data] can be either an [ImageElement], a 13 * [data] can be either an [ImageElement], a
14 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object. 14 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
15 * 15 *
16 * This is deprecated in favor of [texImage2D]. 16 * This is deprecated in favor of [texImage2D].
17 */ 17 */
18 @Deprecated("Use texImage2D") 18 @Deprecated("Use texImage2D")
19 void texImage2DUntyped(int targetTexture, int levelOfDetail, 19 void texImage2DUntyped(int targetTexture, int levelOfDetail,
20 int internalFormat, int format, int type, data) { 20 int internalFormat, int format, int type, data) {
21 texImage2D(targetText, levelOfDetail, internalFormat, format, type, data); 21 texImage2D(targetTexture, levelOfDetail, internalFormat, format, type, data) ;
22 } 22 }
23 23
24 /** 24 /**
25 * Sets the currently bound texture to [data]. 25 * Sets the currently bound texture to [data].
26 * 26 *
27 * This is deprecated in favour of [texImage2D]. 27 * This is deprecated in favour of [texImage2D].
28 */ 28 */
29 @Deprecated("Use texImage2D") 29 @Deprecated("Use texImage2D")
30 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat, 30 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
31 int width, int height, int border, int format, int type, TypedData data) { 31 int width, int height, int border, int format, int type, TypedData data) {
(...skipping 24 matching lines...) Expand all
56 int type, TypedData data) { 56 int type, TypedData data) {
57 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset, 57 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset,
58 width, height, format, type, data); 58 width, height, format, type, data);
59 } 59 }
60 60
61 /** 61 /**
62 * Set the bufferData to [data]. 62 * Set the bufferData to [data].
63 */ 63 */
64 @Deprecated("Use bufferData") 64 @Deprecated("Use bufferData")
65 void bufferDataTyped(int target, TypedData data, int usage) { 65 void bufferDataTyped(int target, TypedData data, int usage) {
66 bufferData2D(targetTexture, levelOfDetail, xOffset, yOffset, 66 bufferData(target, data, usage);
67 format, type, data);
68 } 67 }
69 68
70 /** 69 /**
71 * Set the bufferSubData to [data]. 70 * Set the bufferSubData to [data].
72 */ 71 */
73 @Deprecated("Use bufferSubData") 72 @Deprecated("Use bufferSubData")
74 void bufferSubDataTyped(int target, TypedData data, int usage) { 73 void bufferSubDataTyped(int target, int offset, TypedData data) {
75 bufferSubData2D(targetTexture, levelOfDetail, xOffset, yOffset, 74 bufferSubData(target, offset, data);
76 format, type, data);
77 } 75 }
78 } 76 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_api_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698