commit | aa71c899fdf55e0a6cce60a2aed1ad904d23646d | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Tue Jan 30 09:27:01 2018 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jan 30 14:47:45 2018 +0000 |
tree | d14f78a9776265f02ca2a664a849fbb034d082db | |
parent | 3a3fbf16c3cbaae65edfff2cf9108b0ff1063067 [diff] [blame] |
[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>
diff --git a/experimental/skottie/Skottie.cpp b/experimental/skottie/Skottie.cpp index 1ac8f7d..aee1210 100644 --- a/experimental/skottie/Skottie.cpp +++ b/experimental/skottie/Skottie.cpp
@@ -902,6 +902,7 @@ } 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); });