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

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

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 | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/CanvasPath.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Canvas.idl
diff --git a/sky/engine/core/painting/Canvas.idl b/sky/engine/core/painting/Canvas.idl
index 95cacfc3b2c2bd8f98518f941ab5269f3c27a64e..538e492905fec0d317325082afcfbefe3e73898f 100644
--- a/sky/engine/core/painting/Canvas.idl
+++ b/sky/engine/core/painting/Canvas.idl
@@ -10,7 +10,8 @@ interface Canvas {
readonly attribute float width;
void save();
- void saveLayer(Rect bounds /* optional */, Paint paint /* optional */);
+ // TODO(jackson): Paint should be optional, but making it optional causes crash
+ void saveLayer(Rect bounds, /* optional */ Paint paint);
void restore();
void translate(float dx, float dy);
@@ -20,6 +21,8 @@ interface Canvas {
void concat(Float32List matrix4);
void clipRect(Rect rect);
+ void clipRRect(RRect rrect);
+ void clipPath(Path path);
void drawLine(float x0, float y0, float x1, float y1, Paint paint);
void drawPicture(Picture picture);
« no previous file with comments | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/CanvasPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698