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

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

Issue 1217623002: Support for background images on cards, style demo home (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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/sdk/BUILD.gn » ('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 0e0bac9485372e17d4e95df09c190b9659cfd615..3c16526748d7b1852afef94053a818fa34612114 100644
--- a/sky/engine/core/painting/Canvas.cpp
+++ b/sky/engine/core/painting/Canvas.cpp
@@ -109,14 +109,14 @@ void Canvas::clipRRect(const RRect* rrect)
{
if (!m_canvas)
return;
- m_canvas->clipRRect(rrect->rrect());
+ m_canvas->clipRRect(rrect->rrect(), SkRegion::kIntersect_Op, true);
}
void Canvas::clipPath(const CanvasPath* path)
{
if (!m_canvas)
return;
- m_canvas->clipPath(path->path());
+ m_canvas->clipPath(path->path(), SkRegion::kIntersect_Op, true);
}
void Canvas::drawLine(const Point& p1, const Point& p2, const Paint* paint)
« no previous file with comments | « no previous file | sky/sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698