Files
sdk/tools/dom/templates/html/impl/impl_WebGLRenderingContext.darttemplate
T
Terry Lucas 8fedfc7f8c Removed DomName, DosEditable, and experimental annoations they are unused.
R=kevmoo@google.com,vsm@google.com

Fixes #32304

Change-Id: Ia2c8f99f0125c4d4bd0f95a792ff2af8a58e3599
Reviewed-on: https://dart-review.googlesource.com/60400
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
2018-06-18 18:48:03 +00:00

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 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);
}
}