| Index: sky/engine/core/painting/Canvas.h
|
| diff --git a/sky/engine/core/painting/Canvas.h b/sky/engine/core/painting/Canvas.h
|
| index 7fb70b5cf33ba90a6c72ed5a714d549cae9c79cb..c1d34221e80fd7021d286ff1a274f348b1bca194 100644
|
| --- a/sky/engine/core/painting/Canvas.h
|
| +++ b/sky/engine/core/painting/Canvas.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "sky/engine/bindings/exception_state.h"
|
| #include "sky/engine/core/painting/CanvasPath.h"
|
| +#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/Picture.h"
|
| @@ -72,7 +73,6 @@ public:
|
| void clipPath(const CanvasPath* path);
|
|
|
| void drawLine(const Point& p1, const Point& p2, const Paint* paint);
|
| - void drawPicture(Picture* picture);
|
| void drawPaint(const Paint* paint);
|
| void drawRect(const Rect& rect, const Paint* paint);
|
| void drawRRect(const RRect* rrect, const Paint* paint);
|
| @@ -81,6 +81,8 @@ public:
|
| void drawPath(const CanvasPath* path, const Paint* paint);
|
| void drawImage(const CanvasImage* image, const Point& p, const Paint* paint);
|
| void drawImageRect(const CanvasImage* image, Rect& src, Rect& dst, Paint* paint);
|
| + void drawPicture(Picture* picture);
|
| + void drawDrawable(Drawable* drawable);
|
|
|
| SkCanvas* skCanvas() { return m_canvas; }
|
| void clearSkCanvas() { m_canvas = nullptr; }
|
|
|