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

Unified Diff: sky/sdk/lib/rendering/object.dart

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch 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/sdk/lib/rendering/object.dart
diff --git a/sky/sdk/lib/rendering/object.dart b/sky/sdk/lib/rendering/object.dart
index 998bea32935f69fb34b7c1e0011c86776099e2b0..bc100a77d188ba23c0d543651a0da22a6e10c093 100644
--- a/sky/sdk/lib/rendering/object.dart
+++ b/sky/sdk/lib/rendering/object.dart
@@ -26,10 +26,9 @@ class ParentData {
String toString() => '<none>';
}
-const kLayoutDirections = 4;
+class RenderCanvas extends sky.Canvas {
+ RenderCanvas(sky.PictureRecorder recorder, double width, double height) : super(recorder, width, height);
-class RenderObjectDisplayList extends sky.PictureRecorder {
- RenderObjectDisplayList(double width, double height) : super(width, height);
void paintChild(RenderObject child, Point position) {
translate(position.x, position.y);
child.paint(this);
@@ -219,7 +218,7 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
assert(!debugDoingPaint);
scheduler.ensureVisualUpdate();
}
- void paint(RenderObjectDisplayList canvas) { }
+ void paint(RenderCanvas canvas) { }
// EVENTS

Powered by Google App Engine
This is Rietveld 408576698