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

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

Issue 1174203002: Clip inkwell splash around the floating action button (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase and apply code review feedback 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
« no previous file with comments | « no previous file | 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 8a768f2d8d7f998ce61c5edc19239c1179c465fd..abd325643ec8188ffcf6a0feb467d3ef19f0d020 100644
--- a/sky/engine/core/painting/Canvas.h
+++ b/sky/engine/core/painting/Canvas.h
@@ -32,7 +32,7 @@ public:
float height() const { return m_size.height(); }
void save();
- void saveLayer(const Rect& bounds, const Paint* paint);
+ void saveLayer(const Rect& bounds, const Paint* paint = nullptr);
void restore();
void translate(float dx, float dy);
@@ -42,6 +42,8 @@ public:
void concat(const Float32List& matrix4);
void clipRect(const Rect& rect);
+ void clipRRect(const RRect* rrect);
+ void clipPath(const CanvasPath* path);
void drawLine(float x0, float y0, float x1, float y1, const Paint* paint);
void drawPicture(Picture* picture);
« no previous file with comments | « no previous file | sky/engine/core/painting/Canvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698