[skottie] Turn on AA for solid layers
TBR=reed Change-Id: I8b7b73516eeb7acb5412ad61d6fcbe92dbe10525 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201467 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
parent
70ac835a0a
commit
7b49eeb496
@ -293,8 +293,11 @@ sk_sp<sksg::RenderNode> AnimationBuilder::attachSolidLayer(const skjson::ObjectV
|
||||
|
||||
const SkColor color = 0xff000000 | c;
|
||||
|
||||
auto solid_paint = sksg::Color::Make(color);
|
||||
solid_paint->setAntiAlias(true);
|
||||
|
||||
return sksg::Draw::Make(sksg::Rect::Make(SkRect::MakeSize(size)),
|
||||
sksg::Color::Make(color));
|
||||
std::move(solid_paint));
|
||||
}
|
||||
|
||||
const AnimationBuilder::ImageAssetInfo*
|
||||
|
Loading…
Reference in New Issue
Block a user