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

Unified Diff: samples/spirodraw/Spirodraw.dart

Issue 10067009: Migrate the samples to one-argument version of requestAnimationFrame and re-enable the test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/client.status ('k') | samples/total/client/InnerMenuView.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/spirodraw/Spirodraw.dart
diff --git a/samples/spirodraw/Spirodraw.dart b/samples/spirodraw/Spirodraw.dart
index 6ca38eaac4da4115d960494c1bdb97ff9023b7c4..5eb821f998d48477f092a90da5658ba2588363e3 100644
--- a/samples/spirodraw/Spirodraw.dart
+++ b/samples/spirodraw/Spirodraw.dart
@@ -164,7 +164,7 @@ class Spirodraw {
drawFrame(rad);
int nTurns = (rad / PI2).toInt();
numTurns.text = '${nTurns}/$maxTurns';
- window.webkitRequestAnimationFrame(animate, frontCanvas);
+ window.webkitRequestAnimationFrame(animate);
} else {
stop();
}
@@ -174,7 +174,7 @@ class Spirodraw {
refresh();
rad = 0.0;
run = true;
- window.webkitRequestAnimationFrame(animate, frontCanvas);
+ window.webkitRequestAnimationFrame(animate);
}
int calcTurns() {
« no previous file with comments | « client/tests/client/client.status ('k') | samples/total/client/InnerMenuView.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698