e2ff83724b
Addresses discrepancies between IDL and template files for some operations. There's probably more I'm missing since this was from a cursory check through all the templates. Change-Id: Id79710b343f4a5fe0b5529f64c341d4f63d69b9d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135222 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Srujan Gaddam <srujzs@google.com>
82 lines
2.6 KiB
Plaintext
82 lines
2.6 KiB
Plaintext
// 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)$(NATIVESPEC)class $CLASSNAME$EXTENDS implements CanvasRenderingContext {
|
|
$!MEMBERS
|
|
|
|
void readPixels(int x, int y, int width, int height, int format, int type,
|
|
TypedData$NULLABLE pixels) {
|
|
_readPixels(x, y, width, height, format, type, pixels);
|
|
}
|
|
|
|
/**
|
|
* Sets the currently bound texture to [data].
|
|
*
|
|
* [data] can be either an [ImageElement], a
|
|
* [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
|
|
*
|
|
* This is deprecated in favor of [texImage2D].
|
|
*/
|
|
@Deprecated("Use texImage2D")
|
|
void texImage2DUntyped(int targetTexture, int levelOfDetail,
|
|
int internalFormat, int format, int type, data) {
|
|
texImage2D(targetTexture, levelOfDetail, internalFormat, format, type, data);
|
|
}
|
|
|
|
/**
|
|
* Sets the currently bound texture to [data].
|
|
*
|
|
* This is deprecated in favour of [texImage2D].
|
|
*/
|
|
@Deprecated("Use texImage2D")
|
|
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);
|
|
}
|
|
|
|
/**
|
|
* Updates a sub-rectangle of the currently bound texture to [data].
|
|
*
|
|
* [data] can be either an [ImageElement], a
|
|
* [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
|
|
*
|
|
*/
|
|
@Deprecated("Use texSubImage2D")
|
|
void texSubImage2DUntyped(int targetTexture, int levelOfDetail,
|
|
int xOffset, int yOffset, int format, int type, data) {
|
|
texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset,
|
|
format, type, data);
|
|
}
|
|
|
|
/**
|
|
* Updates a sub-rectangle of the currently bound texture to [data].
|
|
*/
|
|
@Deprecated("Use texSubImage2D")
|
|
void texSubImage2DTyped(int targetTexture, int levelOfDetail,
|
|
int xOffset, int yOffset, int width, int height, int border, int format,
|
|
int type, TypedData data) {
|
|
texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset,
|
|
width, height, format, type, data);
|
|
}
|
|
|
|
/**
|
|
* Set the bufferData to [data].
|
|
*/
|
|
@Deprecated("Use bufferData")
|
|
void bufferDataTyped(int target, TypedData data, int usage) {
|
|
bufferData(target, data, usage);
|
|
}
|
|
|
|
/**
|
|
* Set the bufferSubData to [data].
|
|
*/
|
|
@Deprecated("Use bufferSubData")
|
|
void bufferSubDataTyped(int target, int offset, TypedData data) {
|
|
bufferSubData(target, offset, data);
|
|
}
|
|
}
|