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

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

Issue 1161813005: Implement a simple checkbox in Sky’s fn2 components library (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: sky/engine/core/painting/Canvas.h
diff --git a/sky/engine/core/painting/Canvas.h b/sky/engine/core/painting/Canvas.h
index 7571242dc2fc077bfae727dc4cd24e092020c605..b21d8b6a2264418b8a49c76aae401273a34f078f 100644
--- a/sky/engine/core/painting/Canvas.h
+++ b/sky/engine/core/painting/Canvas.h
@@ -8,6 +8,7 @@
#include "sky/engine/core/painting/CanvasPath.h"
#include "sky/engine/core/painting/Paint.h"
#include "sky/engine/core/painting/Picture.h"
+#include "sky/engine/core/painting/RRect.h"
#include "sky/engine/core/painting/Rect.h"
#include "sky/engine/platform/graphics/DisplayList.h"
#include "sky/engine/tonic/dart_wrappable.h"
@@ -42,9 +43,11 @@ public:
void clipRect(const Rect& rect);
+ void drawLine(float x0, float y0, float x1, float y1, const Paint* paint);
abarth-chromium 2015/06/05 21:00:59 Point p1, Point p2
jackson 2015/06/05 21:14:11 We might want to match the Skia APIs, I will land
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);
void drawOval(const Rect& rect, const Paint* paint);
void drawCircle(float x, float y, float radius, const Paint* paint);
void drawPath(const CanvasPath* path, const Paint* paint);

Powered by Google App Engine
This is Rietveld 408576698