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

Unified Diff: sky/examples/game/lib/sprite_box.dart

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@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/examples/game/lib/sprite_box.dart
diff --git a/sky/examples/game/lib/sprite_box.dart b/sky/examples/game/lib/sprite_box.dart
index 7c95ee79d9066d2f80aaf437f2211e518fe1f458..685cf562bee72d734645fcf56bffbf95ff3f3429 100644
--- a/sky/examples/game/lib/sprite_box.dart
+++ b/sky/examples/game/lib/sprite_box.dart
@@ -1,3 +1,5 @@
+import 'dart:sky' as sky;
abarth-chromium 2015/06/18 00:03:52 This file is a "part of" the main game library, wh
iansf 2015/06/20 00:02:38 Done.
+
part of sprites;
enum SpriteBoxTransformMode {
@@ -69,7 +71,7 @@ class SpriteBox extends RenderBox {
// Rendering
- void paint(RenderObjectDisplayList canvas) {
+ void paint(sky.Canvas canvas) {
// Move to correct coordinate space before drawing
double scaleX = 1.0;
double scaleY = 1.0;

Powered by Google App Engine
This is Rietveld 408576698