Index: sky/engine/core/painting/PaintingContext.h |
diff --git a/sky/engine/core/painting/PaintingContext.h b/sky/engine/core/painting/PaintingContext.h |
index 2c082522213f507a79707e6c1bb73e0b4388426c..16a7da547ac908c08c1be91bb6720588add69e1a 100644 |
--- a/sky/engine/core/painting/PaintingContext.h |
+++ b/sky/engine/core/painting/PaintingContext.h |
@@ -10,6 +10,7 @@ |
#include "sky/engine/tonic/dart_wrappable.h" |
#include "sky/engine/wtf/PassRefPtr.h" |
#include "sky/engine/wtf/RefCounted.h" |
+#include "sky/engine/wtf/Vector.h" |
namespace blink { |
class Element; |
@@ -23,7 +24,23 @@ public: |
double height() const { return m_size.height(); } |
double width() const { return m_size.width(); } |
+ void save(); |
+ void saveLayer(Vector<float> bounds, Paint* paint); |
+ void restore(); |
+ |
+ void translate(float dx, float dy); |
+ void scale(float sx, float sy); |
+ void rotate(float degrees); |
+ void skew(float sx, float sy); |
+ void concat(Vector<float> matrix); |
+ |
+ void clipRect(Vector<float> rect); |
+ |
+ void drawPaint(Paint* paint); |
+ void drawRect(Vector<float> rect, Paint* paint); |
+ void drawOval(Vector<float> rect, Paint* paint); |
void drawCircle(double x, double y, double radius, Paint* paint); |
+ |
void commit(); |
private: |