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

Unified Diff: samples/matrix/float32.dart

Issue 10910013: Remove instances of dart:dom_deprecated from outside of lib/html and lib/dom. Part 1 of many. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: samples/matrix/float32.dart
===================================================================
--- samples/matrix/float32.dart (revision 11641)
+++ samples/matrix/float32.dart (working copy)
@@ -1,27 +0,0 @@
-// Copyright (c) 2011, 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.
-
-/**
- * Emulates the browser's Float32Array (so Matrix4 can be used outside
- * the browser.
- * (Note this stores entries as 64-bit doubles, since there is no
- * 32-bit float type on the vm.)
- */
-class Float32Array {
- final List<double> buf;
-
- Float32Array(int size) : buf = new List<double>(size) {
- for (int i = 0; i < size; i++) {
- buf[i] = 0.0;
- }
- }
-
- double operator [](int i) {
- return buf[i];
- }
-
- void operator []=(int i, num value) {
- buf[i] = (value != null) ? value.toDouble() : 0.0;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698