| Index: sky/engine/core/painting/Canvas.h
|
| diff --git a/sky/engine/core/painting/Canvas.h b/sky/engine/core/painting/Canvas.h
|
| index c1d34221e80fd7021d286ff1a274f348b1bca194..ae1150914ed3070c529b564fdf4722be4bb070f5 100644
|
| --- a/sky/engine/core/painting/Canvas.h
|
| +++ b/sky/engine/core/painting/Canvas.h
|
| @@ -10,6 +10,7 @@
|
| #include "sky/engine/core/painting/Drawable.h"
|
| #include "sky/engine/core/painting/Offset.h"
|
| #include "sky/engine/core/painting/Paint.h"
|
| +#include "sky/engine/core/painting/PaintingNode.h"
|
| #include "sky/engine/core/painting/Picture.h"
|
| #include "sky/engine/core/painting/PictureRecorder.h"
|
| #include "sky/engine/core/painting/Point.h"
|
| @@ -35,7 +36,7 @@ public:
|
| }
|
|
|
| static PassRefPtr<Canvas> create(PictureRecorder* recorder,
|
| - Size& bounds,
|
| + Rect& bounds,
|
| ExceptionState& es) {
|
| ASSERT(recorder);
|
| if (recorder->isRecording()) {
|
| @@ -50,8 +51,7 @@ public:
|
| // dart code catches the error, it will leak a canvas
|
| // but it won't crash.
|
| }
|
| - PassRefPtr<Canvas> canvas = create(
|
| - recorder->beginRecording(bounds.sk_size.width(), bounds.sk_size.height()));
|
| + PassRefPtr<Canvas> canvas = create(recorder->beginRecording(bounds));
|
| recorder->set_canvas(canvas.get());
|
| return canvas;
|
| }
|
| @@ -83,6 +83,7 @@ public:
|
| void drawImageRect(const CanvasImage* image, Rect& src, Rect& dst, Paint* paint);
|
| void drawPicture(Picture* picture);
|
| void drawDrawable(Drawable* drawable);
|
| + void drawPaintingNode(PaintingNode* paintingNode, const Point& p);
|
|
|
| SkCanvas* skCanvas() { return m_canvas; }
|
| void clearSkCanvas() { m_canvas = nullptr; }
|
|
|