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

Unified Diff: sky/sdk/lib/example/raw/spinning_image.dart

Issue 1209413004: Instead of applying a transform for every RenderObject, pass down an Offset for where to paint. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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: sky/sdk/lib/example/raw/spinning_image.dart
diff --git a/sky/sdk/lib/example/raw/spinning_image.dart b/sky/sdk/lib/example/raw/spinning_image.dart
index 6ad30559ddd417cd43ed448be6e12d3a39e02945..9fa1b013aeaea5ee8280e2764e9d23893924ea7d 100644
--- a/sky/sdk/lib/example/raw/spinning_image.dart
+++ b/sky/sdk/lib/example/raw/spinning_image.dart
@@ -14,7 +14,8 @@ String url1 = "https://www.dartlang.org/logos/dart-logo.png";
String url2 = "http://i2.kym-cdn.com/photos/images/facebook/000/581/296/c09.jpg";
void beginFrame(double timeStamp) {
- if (timeBase == null) timeBase = timeStamp;
+ if (timeBase == null)
+ timeBase = timeStamp;
double delta = timeStamp - timeBase;
PictureRecorder recorder = new PictureRecorder();
Canvas canvas = new Canvas(recorder, new Size(view.width, view.height));

Powered by Google App Engine
This is Rietveld 408576698