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

Unified Diff: sky/sdk/lib/framework/animation/generators.dart

Issue 1145973009: Add a simple inksplash example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits Created 5 years, 7 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
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/framework/app.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/animation/generators.dart
diff --git a/sky/sdk/lib/framework/animation/generators.dart b/sky/sdk/lib/framework/animation/generators.dart
index 7dab878a1b1ddf46b66a645b6768f679a6ce388f..9673c1ef26511420b2207087149624801396f9a1 100644
--- a/sky/sdk/lib/framework/animation/generators.dart
+++ b/sky/sdk/lib/framework/animation/generators.dart
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+import '../scheduler.dart' as scheduler;
import 'curves.dart';
import 'dart:async';
import 'dart:math' as math;
-import 'dart:sky' as sky;
import 'mechanics.dart';
abstract class Generator {
@@ -34,7 +34,7 @@ class FrameGenerator extends Generator {
return;
}
if (_animationId != 0) {
- sky.window.cancelAnimationFrame(_animationId);
+ scheduler.cancelAnimationFrame(_animationId);
}
_animationId = 0;
_cancelled = true;
@@ -45,7 +45,7 @@ class FrameGenerator extends Generator {
void _scheduleTick() {
assert(_animationId == 0);
- _animationId = sky.window.requestAnimationFrame(_tick);
+ _animationId = scheduler.requestAnimationFrame(_tick);
}
void _tick(double timeStamp) {
« no previous file with comments | « sky/sdk/BUILD.gn ('k') | sky/sdk/lib/framework/app.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698