diff options
Diffstat (limited to 'experimental/sksg/SkSGPaintNode.cpp')
-rw-r--r-- | experimental/sksg/SkSGPaintNode.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/experimental/sksg/SkSGPaintNode.cpp b/experimental/sksg/SkSGPaintNode.cpp index 146d248b8e..bb5b714030 100644 --- a/experimental/sksg/SkSGPaintNode.cpp +++ b/experimental/sksg/SkSGPaintNode.cpp @@ -31,6 +31,9 @@ SkRect PaintNode::onRevalidate(InvalidationController*, const SkMatrix&) { this->onApplyToPaint(&fPaint); + // Compose opacity on top of the subclass value. + fPaint.setAlpha(SkScalarRoundToInt(fPaint.getAlpha() * SkTPin<SkScalar>(fOpacity, 0, 1))); + return SkRect::MakeEmpty(); } |