mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:00:09 +00:00
Fix webgl methods, properly this time
BUG= Review URL: https://codereview.chromium.org/1846803002 .
This commit is contained in:
parent
3b18b656c3
commit
0f5c249f22
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -19,9 +19,6 @@ import 'package:compiler/src/diagnostics/messages.dart' show MessageKind;
|
|||
*/
|
||||
// TODO(johnniwinther): Support canonical URIs as keys.
|
||||
const Map<String, List<String>> WHITE_LIST = const {
|
||||
'sdk/lib/web_gl/dart2js/web_gl_dart2js.dart': const [
|
||||
"is not defined for the class 'RenderingContext'", // Issue 26111
|
||||
],
|
||||
};
|
||||
|
||||
void main() {
|
||||
|
|
|
@ -18,7 +18,7 @@ $!MEMBERS
|
|||
@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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -63,16 +63,14 @@ $!MEMBERS
|
|||
*/
|
||||
@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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue