| OLD | NEW |
| 1 | 1 |
| 2 import 'dart:async'; | 2 import 'dart:async'; |
| 3 import 'dart:sky' as sky; | 3 import 'dart:sky' as sky; |
| 4 import "dart:sky.internals" as internals; | 4 import "dart:sky.internals" as internals; |
| 5 | 5 |
| 6 import 'package:sky/widgets/basic.dart'; | 6 import 'package:sky/widgets/basic.dart'; |
| 7 import 'package:sky/rendering/box.dart'; | 7 import 'package:sky/rendering/box.dart'; |
| 8 import 'package:sky/rendering/object.dart'; | 8 import 'package:sky/rendering/object.dart'; |
| 9 | 9 |
| 10 typedef void Logger (String s); | 10 typedef void Logger (String s); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 void drawPath(Path path, Paint paint) { | 101 void drawPath(Path path, Paint paint) { |
| 102 log("drawPath($path, $paint)"); | 102 log("drawPath($path, $paint)"); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void drawImage(sky.Image image, double x, double y, Paint paint) { | 105 void drawImage(sky.Image image, double x, double y, Paint paint) { |
| 106 log("drawImage($image, $x, $y, $paint)"); | 106 log("drawImage($image, $x, $y, $paint)"); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void drawImageRect(sky.Image image, sky.Rect src, sky.Rect dst, Paint paint) { |
| 110 log("drawImageRect($image, $src, $dst, paint)"); |
| 111 } |
| 112 |
| 109 void paintChild(RenderObject child, Point position) { | 113 void paintChild(RenderObject child, Point position) { |
| 110 log("paintChild ${child.runtimeType} at $position"); | 114 log("paintChild ${child.runtimeType} at $position"); |
| 111 child.paint(new TestDisplayList(width, height, logger, indent: "$indent |")
); | 115 child.paint(new TestDisplayList(width, height, logger, indent: "$indent |")
); |
| 112 } | 116 } |
| 113 } | 117 } |
| 114 | 118 |
| 115 class TestRenderView extends RenderView { | 119 class TestRenderView extends RenderView { |
| 116 | 120 |
| 117 TestRenderView([ RenderBox child = null ]) : super(child: child) { | 121 TestRenderView([ RenderBox child = null ]) : super(child: child) { |
| 118 print("TestRenderView enabled"); | 122 print("TestRenderView enabled"); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 177 |
| 174 Future test(Function builder) { | 178 Future test(Function builder) { |
| 175 runApp(new TestApp(builder: builder), renderViewOverride: renderView); | 179 runApp(new TestApp(builder: builder), renderViewOverride: renderView); |
| 176 return renderView.checkFrame(); | 180 return renderView.checkFrame(); |
| 177 } | 181 } |
| 178 | 182 |
| 179 void endTest() { | 183 void endTest() { |
| 180 renderView.endTest(); | 184 renderView.endTest(); |
| 181 } | 185 } |
| 182 } | 186 } |
| OLD | NEW |