aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2018-01-30 09:27:01 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-30 14:47:45 +0000
commitaa71c899fdf55e0a6cce60a2aed1ad904d23646d (patch)
treed14f78a9776265f02ca2a664a849fbb034d082db /experimental
parent3a3fbf16c3cbaae65edfff2cf9108b0ff1063067 (diff)
[skottie] Anti-alias masks
TBR= Change-Id: I16eca80b515fde8ad87a79c01ffd0ea2b3e31259 Reviewed-on: https://skia-review.googlesource.com/101740 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental')
-rw-r--r--experimental/skottie/Skottie.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/experimental/skottie/Skottie.cpp b/experimental/skottie/Skottie.cpp
index 1ac8f7de3d..aee121020e 100644
--- a/experimental/skottie/Skottie.cpp
+++ b/experimental/skottie/Skottie.cpp
@@ -902,6 +902,7 @@ sk_sp<sksg::RenderNode> AttachMask(const Json::Value& jmask,
}
auto mask_paint = sksg::Color::Make(SK_ColorBLACK);
+ mask_paint->setAntiAlias(true);
mask_paint->setBlendMode(MaskBlendMode(mode.c_str()[0]));
BindProperty<ScalarValue>(m["o"], &ctx->fAnimators,
[mask_paint](const ScalarValue& o) { mask_paint->setOpacity(o * 0.01f); });