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

Unified Diff: sky/sdk/lib/base/scheduler.dart

Issue 1235153005: Add a timeDilation factor for debugging (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/lib/base/debug.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/base/scheduler.dart
diff --git a/sky/sdk/lib/base/scheduler.dart b/sky/sdk/lib/base/scheduler.dart
index 272217d879b766fc22c8276272952d16e08f40f5..d1494412a0d1e3668a96211d2439d7b4b2eb8be5 100644
--- a/sky/sdk/lib/base/scheduler.dart
+++ b/sky/sdk/lib/base/scheduler.dart
@@ -4,6 +4,8 @@
import 'dart:sky' as sky;
+import 'package:sky/base/debug.dart';
+
typedef void Callback(double timeStamp);
bool _haveScheduledVisualUpdate = false;
@@ -13,6 +15,8 @@ final List<Callback> _persistentCallbacks = new List<Callback>();
Map<int, Callback> _transientCallbacks = new Map<int, Callback>();
void _beginFrame(double timeStamp) {
+ timeStamp /= timeDilation;
+
_haveScheduledVisualUpdate = false;
Map<int, Callback> callbacks = _transientCallbacks;
« no previous file with comments | « sky/sdk/lib/base/debug.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698