| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:math' as math; | 5 import 'dart:math' as math; |
| 6 import 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
| 7 | 7 |
| 8 import 'package:vector_math/vector_math.dart'; | 8 import 'package:vector_math/vector_math.dart'; |
| 9 | 9 |
| 10 import '../base/debug.dart'; | 10 import '../base/debug.dart'; |
| (...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 assert(size.width != null); | 1152 assert(size.width != null); |
| 1153 assert(size.height != null); | 1153 assert(size.height != null); |
| 1154 _painter.paint(canvas, offset & size); | 1154 _painter.paint(canvas, offset & size); |
| 1155 super.paint(canvas, offset); | 1155 super.paint(canvas, offset); |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 String debugDescribeSettings(String prefix) => '${super.debugDescribeSettings(
prefix)}${prefix}decoration:\n${_painter.decoration.toString(prefix + " ")}\n'; | 1158 String debugDescribeSettings(String prefix) => '${super.debugDescribeSettings(
prefix)}${prefix}decoration:\n${_painter.decoration.toString(prefix + " ")}\n'; |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 class RenderTransform extends RenderProxyBox { | 1161 class RenderTransform extends RenderProxyBox { |
| 1162 bool get createNewDisplayList => true; |
| 1163 |
| 1162 RenderTransform({ | 1164 RenderTransform({ |
| 1163 Matrix4 transform, | 1165 Matrix4 transform, |
| 1164 RenderBox child | 1166 RenderBox child |
| 1165 }) : super(child) { | 1167 }) : super(child) { |
| 1166 assert(transform != null); | 1168 assert(transform != null); |
| 1167 this.transform = transform; | 1169 this.transform = transform; |
| 1168 } | 1170 } |
| 1169 | 1171 |
| 1170 Matrix4 _transform; | 1172 Matrix4 _transform; |
| 1171 | 1173 |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 | 1439 |
| 1438 void defaultPaint(PaintingCanvas canvas, Offset offset) { | 1440 void defaultPaint(PaintingCanvas canvas, Offset offset) { |
| 1439 RenderBox child = firstChild; | 1441 RenderBox child = firstChild; |
| 1440 while (child != null) { | 1442 while (child != null) { |
| 1441 assert(child.parentData is ParentDataType); | 1443 assert(child.parentData is ParentDataType); |
| 1442 canvas.paintChild(child, child.parentData.position + offset); | 1444 canvas.paintChild(child, child.parentData.position + offset); |
| 1443 child = child.parentData.nextSibling; | 1445 child = child.parentData.nextSibling; |
| 1444 } | 1446 } |
| 1445 } | 1447 } |
| 1446 } | 1448 } |
| OLD | NEW |