From aa71c899fdf55e0a6cce60a2aed1ad904d23646d Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Tue, 30 Jan 2018 09:27:01 -0500 Subject: [skottie] Anti-alias masks TBR= Change-Id: I16eca80b515fde8ad87a79c01ffd0ea2b3e31259 Reviewed-on: https://skia-review.googlesource.com/101740 Reviewed-by: Florin Malita Commit-Queue: Florin Malita --- experimental/skottie/Skottie.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'experimental') 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 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(m["o"], &ctx->fAnimators, [mask_paint](const ScalarValue& o) { mask_paint->setOpacity(o * 0.01f); }); -- cgit v1.2.3