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

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

Issue 1174203002: Clip inkwell splash around the floating action button (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/CanvasPath.h
diff --git a/sky/engine/core/painting/CanvasPath.h b/sky/engine/core/painting/CanvasPath.h
index 1bffeda340704549617af5ee58c0e97358b9ddf7..29520617d5e971d3ff1190864dda095a0c402e5f 100644
--- a/sky/engine/core/painting/CanvasPath.h
+++ b/sky/engine/core/painting/CanvasPath.h
@@ -43,6 +43,11 @@ public:
m_path.arcTo(rect.sk_rect, startAngle*180.0/M_PI, sweepAngle*180.0/M_PI, forceMoveTo);
}
+ void addOval(const Rect& oval)
+ {
+ m_path.addOval(oval.sk_rect);
+ }
+
void close()
{
m_path.close();

Powered by Google App Engine
This is Rietveld 408576698