| Index: sky/engine/core/painting/Canvas.h
|
| diff --git a/sky/engine/core/painting/Canvas.h b/sky/engine/core/painting/Canvas.h
|
| index ca8af6e29ec4e494316248455a84bf2f01ad81d6..e26a0ff4d84a0e805be9fcefe3bb579554bc1db8 100644
|
| --- a/sky/engine/core/painting/Canvas.h
|
| +++ b/sky/engine/core/painting/Canvas.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "sky/engine/core/painting/Paint.h"
|
| #include "sky/engine/core/painting/Picture.h"
|
| +#include "sky/engine/core/painting/Rect.h"
|
| #include "sky/engine/platform/graphics/DisplayList.h"
|
| #include "sky/engine/tonic/dart_wrappable.h"
|
| #include "sky/engine/wtf/PassRefPtr.h"
|
| @@ -27,7 +28,7 @@ public:
|
| float height() const { return m_size.height(); }
|
|
|
| void save();
|
| - void saveLayer(const Vector<float>& bounds, const Paint* paint);
|
| + void saveLayer(const Rect& bounds, const Paint* paint);
|
| void restore();
|
|
|
| void translate(float dx, float dy);
|
| @@ -36,12 +37,12 @@ public:
|
| void skew(float sx, float sy);
|
| void concat(const Vector<float>& matrix);
|
|
|
| - void clipRect(const Vector<float>& rect);
|
| + void clipRect(const Rect& rect);
|
|
|
| void drawPicture(Picture* picture);
|
| void drawPaint(const Paint* paint);
|
| - void drawRect(const Vector<float>& rect, const Paint* paint);
|
| - void drawOval(const Vector<float>& rect, const Paint* paint);
|
| + void drawRect(const Rect& rect, const Paint* paint);
|
| + void drawOval(const Rect& rect, const Paint* paint);
|
| void drawCircle(float x, float y, float radius, const Paint* paint);
|
|
|
| SkCanvas* skCanvas() { return m_canvas; }
|
|
|