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

Unified Diff: sky/engine/core/painting/Canvas.h

Issue 1151673002: Sky: different tack for custom Rect type in the Canvas API. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Float32List Created 5 years, 7 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
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/painting/Canvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/painting/Canvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698