Opacity: 1 is a no-op, but it shows up quite a bit in existing documents.
R=robertphillips@google.com,stephana@google.com,reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=
2349143002
Review-Url: https://codereview.chromium.org/
2349143002
// Uninherited attributes. Only apply to the current context.
- if (auto* opacity = attrs.fOpacity.getMaybeNull()) {
+ auto* opacity = attrs.fOpacity.getMaybeNull();
+ if (opacity && opacity->value() < 1) {
SkPaint opacityPaint;
opacityPaint.setAlpha(opacity_to_alpha(opacity->value()));
// Balanced in the destructor, via restoreToCount().