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

Unified Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

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, 9 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 | « no previous file | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
diff --git a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
index 71f2dbbdb43aea1bf8fc70d05480184fbff7d233..4a83a42ef830692b91aa1aba84d88eb47ccaf475 100644
--- a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
+++ b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart
@@ -3006,7 +3006,7 @@ class RenderingContext extends Interceptor implements CanvasRenderingContext {
@Deprecated("Use texImage2D")
void texImage2DUntyped(int targetTexture, int levelOfDetail,
int internalFormat, int format, int type, data) {
- texImage2D(targetText, levelOfDetail, internalFormat, format, type, data);
+ texImage2D(targetTexture, levelOfDetail, internalFormat, format, type, data);
}
/**
@@ -3051,17 +3051,15 @@ class RenderingContext extends Interceptor implements CanvasRenderingContext {
*/
@Deprecated("Use bufferData")
void bufferDataTyped(int target, TypedData data, int usage) {
- bufferData2D(targetTexture, levelOfDetail, xOffset, yOffset,
- format, type, data);
+ bufferData(target, data, usage);
}
/**
* Set the bufferSubData to [data].
*/
@Deprecated("Use bufferSubData")
- void bufferSubDataTyped(int target, TypedData data, int usage) {
- bufferSubData2D(targetTexture, levelOfDetail, xOffset, yOffset,
- format, type, data);
+ void bufferSubDataTyped(int target, int offset, TypedData data) {
+ bufferSubData(target, offset, data);
}
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
« no previous file with comments | « no previous file | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698