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

Unified Diff: sky/examples/game/lib/node_with_size.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: Rebased version of previous patch 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/node_with_size.dart
diff --git a/sky/examples/game/lib/node_with_size.dart b/sky/examples/game/lib/node_with_size.dart
index b527619b8683aaf6eff75dafec561e6a9ffe1610..15503d26922b5394fb28884f3092de3c39d38f18 100644
--- a/sky/examples/game/lib/node_with_size.dart
+++ b/sky/examples/game/lib/node_with_size.dart
@@ -32,7 +32,7 @@ abstract class NodeWithSize extends Node {
/// If you use this method you will need to save and restore your canvas at the beginning and
/// end of your [paint] method.
///
- /// void paint(PictureRecorder canvas) {
+ /// void paint(RenderCanvas canvas) {
/// canvas.save();
/// applyTransformForPivot(canvas);
///
@@ -40,7 +40,7 @@ abstract class NodeWithSize extends Node {
///
/// canvas.restore();
/// }
- void applyTransformForPivot(PictureRecorder canvas) {
+ void applyTransformForPivot(RenderCanvas canvas) {
if (pivot.x != 0 || pivot.y != 0) {
double pivotInPointsX = size.width * pivot.x;
double pivotInPointsY = size.height * pivot.y;

Powered by Google App Engine
This is Rietveld 408576698