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

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

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.h ('k') | sky/engine/core/painting/Canvas.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Canvas.cpp
diff --git a/sky/engine/core/painting/Canvas.cpp b/sky/engine/core/painting/Canvas.cpp
index c973d69f3c9082d9ca9703411a1179b7f0930f01..cc9a9e5bbf193690d7a6c440123b9a69d7bcb86d 100644
--- a/sky/engine/core/painting/Canvas.cpp
+++ b/sky/engine/core/painting/Canvas.cpp
@@ -117,6 +117,22 @@ void Canvas::clipRect(const Rect& rect)
m_canvas->clipRect(rect.sk_rect);
}
+void Canvas::clipRRect(const RRect* rrect)
+{
+ if (!m_canvas)
+ return;
+ ASSERT(m_displayList->isRecording());
+ m_canvas->clipRRect(rrect->rrect());
+}
+
+void Canvas::clipPath(const CanvasPath* path)
+{
+ if (!m_canvas)
+ return;
+ ASSERT(m_displayList->isRecording());
+ m_canvas->clipPath(path->path());
+}
+
void Canvas::drawLine(float x0, float y0, float x1, float y1, const Paint* paint)
{
if (!m_canvas)
« no previous file with comments | « sky/engine/core/painting/Canvas.h ('k') | sky/engine/core/painting/Canvas.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698