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

Unified Diff: sky/tests/resources/display_list.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/tests/resources/display_list.dart
diff --git a/sky/tests/resources/display_list.dart b/sky/tests/resources/display_list.dart
index e9ccc4844df71e29e80aff390daf28fd3d96e9b5..fe62bcdf24a1f3c115ab97dad142eb2190c9b082 100644
--- a/sky/tests/resources/display_list.dart
+++ b/sky/tests/resources/display_list.dart
@@ -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 |"));
+ child.paint(new TestRenderCanvas(new sky.PictureRecorder(), size, logger, indent: "$indent |"), position.toOffset());
}
}
@@ -139,7 +139,7 @@ class TestRenderView extends RenderView {
log("PAINT FOR FRAME #${frame} ----------------------------------------------");
var recorder = new sky.PictureRecorder();
var canvas = new TestRenderCanvas(recorder, rootConstraints.size, log, indent: "${frame} |");
- paint(canvas);
+ paint(canvas, Offset.zero);
recorder.endRecording();
log("------------------------------------------------------------------------");
RenderObject.debugDoingPaint = false;

Powered by Google App Engine
This is Rietveld 408576698