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

Unified Diff: sdk/lib/web_gl/dartium/web_gl_dartium.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 | « sdk/lib/web_gl/dart2js/web_gl_dart2js.dart ('k') | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_gl/dartium/web_gl_dartium.dart
diff --git a/sdk/lib/web_gl/dartium/web_gl_dartium.dart b/sdk/lib/web_gl/dartium/web_gl_dartium.dart
index 31ad9e4c4ca8b33faa23c01f7c5fc40a52ab7ddb..a82b5f6a8144dcc1adaa5b93b50a68d9ad10c869 100644
--- a/sdk/lib/web_gl/dartium/web_gl_dartium.dart
+++ b/sdk/lib/web_gl/dartium/web_gl_dartium.dart
@@ -3379,7 +3379,7 @@ class RenderingContext extends DartHtmlDomObject implements CanvasRenderingConte
@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);
}
/**
@@ -3424,17 +3424,15 @@ class RenderingContext extends DartHtmlDomObject implements CanvasRenderingConte
*/
@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 | « sdk/lib/web_gl/dart2js/web_gl_dart2js.dart ('k') | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698