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

Unified Diff: sky/sdk/example/game/lib/node_with_size.dart

Issue 1217933002: Rename RenderCanvas to PaintingCanvas to avoid confusion with other classes that inherit from Rende… (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
« no previous file with comments | « sky/sdk/example/game/lib/node.dart ('k') | sky/sdk/example/game/lib/sprite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/game/lib/node_with_size.dart
diff --git a/sky/sdk/example/game/lib/node_with_size.dart b/sky/sdk/example/game/lib/node_with_size.dart
index 15503d26922b5394fb28884f3092de3c39d38f18..0e56ded4012e3e8001ec5db49acacdf4e93b76f8 100644
--- a/sky/sdk/example/game/lib/node_with_size.dart
+++ b/sky/sdk/example/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(RenderCanvas canvas) {
+ /// void paint(PaintingCanvas canvas) {
/// canvas.save();
/// applyTransformForPivot(canvas);
///
@@ -40,7 +40,7 @@ abstract class NodeWithSize extends Node {
///
/// canvas.restore();
/// }
- void applyTransformForPivot(RenderCanvas canvas) {
+ void applyTransformForPivot(PaintingCanvas canvas) {
if (pivot.x != 0 || pivot.y != 0) {
double pivotInPointsX = size.width * pivot.x;
double pivotInPointsY = size.height * pivot.y;
« no previous file with comments | « sky/sdk/example/game/lib/node.dart ('k') | sky/sdk/example/game/lib/sprite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698