diff options
Diffstat (limited to 'experimental/sksg/geometry/SkSGTrimEffect.cpp')
-rw-r--r-- | experimental/sksg/geometry/SkSGTrimEffect.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/experimental/sksg/geometry/SkSGTrimEffect.cpp b/experimental/sksg/geometry/SkSGTrimEffect.cpp index afcc7e46b6..0b664fd436 100644 --- a/experimental/sksg/geometry/SkSGTrimEffect.cpp +++ b/experimental/sksg/geometry/SkSGTrimEffect.cpp @@ -22,6 +22,10 @@ TrimEffect::~TrimEffect() { this->unobserveInval(fChild); } +void TrimEffect::onClip(SkCanvas* canvas, bool antiAlias) const { + canvas->clipPath(fChild->asPath(), SkClipOp::kIntersect, antiAlias); +} + // TODO // This is a quick hack to get something on the screen. What we really want here is to apply // the geometry transformation and cache the result on revalidation. Or an SkTrimPathEffect. |