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

Side by Side Diff: sdk/lib/typed_data/typed_data.dart

Issue 23464052: Uint8ClampedList no longer inherits from Uint8List (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/typed_data/dart2js/typed_data_dart2js.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart.typed_data; 5 library dart.typed_data;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_collection-dev'; 8 import 'dart:_collection-dev';
9 9
10 /** 10 /**
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 static const int BYTES_PER_ELEMENT = 1; 423 static const int BYTES_PER_ELEMENT = 1;
424 } 424 }
425 425
426 426
427 /** 427 /**
428 * A fixed-length list of 8-bit unsigned integers. 428 * A fixed-length list of 8-bit unsigned integers.
429 * For long lists, this implementation can be considerably 429 * For long lists, this implementation can be considerably
430 * more space- and time-efficient than the default [List] implementation. 430 * more space- and time-efficient than the default [List] implementation.
431 * Indexed store clamps the value to range 0..0xFF. 431 * Indexed store clamps the value to range 0..0xFF.
432 */ 432 */
433 abstract class Uint8ClampedList implements Uint8List { 433 abstract class Uint8ClampedList implements List<int>, TypedData {
434 /** 434 /**
435 * Creates a [Uint8ClampedList] of the specified length (in elements), all of 435 * Creates a [Uint8ClampedList] of the specified length (in elements), all of
436 * whose elements are initially zero. 436 * whose elements are initially zero.
437 */ 437 */
438 external factory Uint8ClampedList(int length); 438 external factory Uint8ClampedList(int length);
439 439
440 /** 440 /**
441 * Creates a [Uint8ClampedList] of the same size as the [elements] 441 * Creates a [Uint8ClampedList] of the same size as the [elements]
442 * list and copies over the values clamping when needed. 442 * list and copies over the values clamping when needed.
443 */ 443 */
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 Uint32x4 withFlagW(bool w); 1249 Uint32x4 withFlagW(bool w);
1250 1250
1251 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: 1251 /// Merge [trueValue] and [falseValue] based on [this]' bit mask:
1252 /// Select bit from [trueValue] when bit in [this] is on. 1252 /// Select bit from [trueValue] when bit in [this] is on.
1253 /// Select bit from [falseValue] when bit in [this] is off. 1253 /// Select bit from [falseValue] when bit in [this] is off.
1254 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); 1254 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue);
1255 1255
1256 /// Returns a bit-wise copy of [this] as a [Float32x4]. 1256 /// Returns a bit-wise copy of [this] as a [Float32x4].
1257 Float32x4 toFloat32x4(); 1257 Float32x4 toFloat32x4();
1258 } 1258 }
OLDNEW
« no previous file with comments | « sdk/lib/typed_data/dart2js/typed_data_dart2js.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698