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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * 3D programming in the browser. 2 * 3D programming in the browser.
3 */ 3 */
4 library dart.dom.web_gl; 4 library dart.dom.web_gl;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_internal'; 8 import 'dart:_internal';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:html_common'; 10 import 'dart:html_common';
(...skipping 3361 matching lines...) Expand 10 before | Expand all | Expand 10 after
3372 * Sets the currently bound texture to [data]. 3372 * Sets the currently bound texture to [data].
3373 * 3373 *
3374 * [data] can be either an [ImageElement], a 3374 * [data] can be either an [ImageElement], a
3375 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object. 3375 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
3376 * 3376 *
3377 * This is deprecated in favor of [texImage2D]. 3377 * This is deprecated in favor of [texImage2D].
3378 */ 3378 */
3379 @Deprecated("Use texImage2D") 3379 @Deprecated("Use texImage2D")
3380 void texImage2DUntyped(int targetTexture, int levelOfDetail, 3380 void texImage2DUntyped(int targetTexture, int levelOfDetail,
3381 int internalFormat, int format, int type, data) { 3381 int internalFormat, int format, int type, data) {
3382 texImage2D(targetText, levelOfDetail, internalFormat, format, type, data); 3382 texImage2D(targetTexture, levelOfDetail, internalFormat, format, type, data) ;
3383 } 3383 }
3384 3384
3385 /** 3385 /**
3386 * Sets the currently bound texture to [data]. 3386 * Sets the currently bound texture to [data].
3387 * 3387 *
3388 * This is deprecated in favour of [texImage2D]. 3388 * This is deprecated in favour of [texImage2D].
3389 */ 3389 */
3390 @Deprecated("Use texImage2D") 3390 @Deprecated("Use texImage2D")
3391 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat, 3391 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
3392 int width, int height, int border, int format, int type, TypedData data) { 3392 int width, int height, int border, int format, int type, TypedData data) {
(...skipping 24 matching lines...) Expand all
3417 int type, TypedData data) { 3417 int type, TypedData data) {
3418 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset, 3418 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset,
3419 width, height, format, type, data); 3419 width, height, format, type, data);
3420 } 3420 }
3421 3421
3422 /** 3422 /**
3423 * Set the bufferData to [data]. 3423 * Set the bufferData to [data].
3424 */ 3424 */
3425 @Deprecated("Use bufferData") 3425 @Deprecated("Use bufferData")
3426 void bufferDataTyped(int target, TypedData data, int usage) { 3426 void bufferDataTyped(int target, TypedData data, int usage) {
3427 bufferData2D(targetTexture, levelOfDetail, xOffset, yOffset, 3427 bufferData(target, data, usage);
3428 format, type, data);
3429 } 3428 }
3430 3429
3431 /** 3430 /**
3432 * Set the bufferSubData to [data]. 3431 * Set the bufferSubData to [data].
3433 */ 3432 */
3434 @Deprecated("Use bufferSubData") 3433 @Deprecated("Use bufferSubData")
3435 void bufferSubDataTyped(int target, TypedData data, int usage) { 3434 void bufferSubDataTyped(int target, int offset, TypedData data) {
3436 bufferSubData2D(targetTexture, levelOfDetail, xOffset, yOffset, 3435 bufferSubData(target, offset, data);
3437 format, type, data);
3438 } 3436 }
3439 } 3437 }
3440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3441 // for details. All rights reserved. Use of this source code is governed by a 3439 // for details. All rights reserved. Use of this source code is governed by a
3442 // BSD-style license that can be found in the LICENSE file. 3440 // BSD-style license that can be found in the LICENSE file.
3443 3441
3444 // WARNING: Do not edit - generated code. 3442 // WARNING: Do not edit - generated code.
3445 3443
3446 3444
3447 @DocsEditable() 3445 @DocsEditable()
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
6559 6557
6560 6558
6561 @DocsEditable() 6559 @DocsEditable()
6562 @DomName('WebGLRenderingContextBase') 6560 @DomName('WebGLRenderingContextBase')
6563 @Experimental() // untriaged 6561 @Experimental() // untriaged
6564 class _WebGLRenderingContextBase extends DartHtmlDomObject { 6562 class _WebGLRenderingContextBase extends DartHtmlDomObject {
6565 // To suppress missing implicit constructor warnings. 6563 // To suppress missing implicit constructor warnings.
6566 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); } 6564 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); }
6567 6565
6568 } 6566 }
OLDNEW
« 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