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

Unified Diff: sky/tests/resources/display_list.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/tests/raw/sector_layout-expected.txt ('k') | sky/tests/widgets/buttons-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/resources/display_list.dart
diff --git a/sky/tests/resources/display_list.dart b/sky/tests/resources/display_list.dart
index fe62bcdf24a1f3c115ab97dad142eb2190c9b082..761a4bed362cfb4076c250cb598d58c49a9f297a 100644
--- a/sky/tests/resources/display_list.dart
+++ b/sky/tests/resources/display_list.dart
@@ -10,11 +10,11 @@ import 'package:sky/rendering/object.dart';
typedef void Logger (String s);
-class TestRenderCanvas extends RenderCanvas {
- TestRenderCanvas(sky.PictureRecorder recorder, Size size, this.logger, { this.indent: '' })
+class TestPaintingCanvas extends PaintingCanvas {
+ TestPaintingCanvas(sky.PictureRecorder recorder, Size size, this.logger, { this.indent: '' })
: size = size,
super(recorder, size) {
- log("TestRenderCanvas() constructor: ${size.width} x ${size.height}");
+ log("TestPaintingCanvas() constructor: ${size.width} x ${size.height}");
}
final String indent;
@@ -111,7 +111,7 @@ class TestRenderCanvas extends RenderCanvas {
void paintChild(RenderObject child, Point position) {
log("paintChild ${child.runtimeType} at $position");
- child.paint(new TestRenderCanvas(new sky.PictureRecorder(), size, logger, indent: "$indent |"), position.toOffset());
+ child.paint(new TestPaintingCanvas(new sky.PictureRecorder(), size, logger, indent: "$indent |"), position.toOffset());
}
}
@@ -138,7 +138,7 @@ class TestRenderView extends RenderView {
lastPaint = '';
log("PAINT FOR FRAME #${frame} ----------------------------------------------");
var recorder = new sky.PictureRecorder();
- var canvas = new TestRenderCanvas(recorder, rootConstraints.size, log, indent: "${frame} |");
+ var canvas = new TestPaintingCanvas(recorder, rootConstraints.size, log, indent: "${frame} |");
paint(canvas, Offset.zero);
recorder.endRecording();
log("------------------------------------------------------------------------");
« no previous file with comments | « sky/tests/raw/sector_layout-expected.txt ('k') | sky/tests/widgets/buttons-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698