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

Unified Diff: sky/examples/rendering/sector_layout.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: Rework the API a bit 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/examples/rendering/sector_layout.dart
diff --git a/sky/examples/rendering/sector_layout.dart b/sky/examples/rendering/sector_layout.dart
index cc7fdb2b50d5a6836fd77dc0fad7691c5443b7cd..3be8cb7d3931164df2845e45a80ebeba4a7cbb11 100644
--- a/sky/examples/rendering/sector_layout.dart
+++ b/sky/examples/rendering/sector_layout.dart
@@ -114,7 +114,7 @@ abstract class RenderDecoratedSector extends RenderSector {
}
// origin must be set to the center of the circle
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
assert(deltaRadius != null);
assert(deltaTheta != null);
assert(parentData is SectorParentData);
@@ -251,7 +251,7 @@ class RenderSectorRing extends RenderSectorWithChildren {
// paint origin is 0,0 of our circle
// each sector then knows how to paint itself at its location
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
// TODO(ianh): avoid code duplication
super.paint(canvas);
RenderSector child = firstChild;
@@ -356,7 +356,7 @@ class RenderSectorSlice extends RenderSectorWithChildren {
// paint origin is 0,0 of our circle
// each sector then knows how to paint itself at its location
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
// TODO(ianh): avoid code duplication
super.paint(canvas);
RenderSector child = firstChild;
@@ -450,7 +450,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox {
}
// paint origin is 0,0 of our circle
- void paint(RenderObjectDisplayList canvas) {
+ void paint(RenderCanvas canvas) {
super.paint(canvas);
if (child != null) {
Rect bounds = new Rect.fromSize(size);

Powered by Google App Engine
This is Rietveld 408576698