Bug 1888333. r=aosmond, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D205993
This commit is contained in:
Lee Salzman 2024-03-29 04:25:13 +00:00
parent 224c0599fd
commit 46d5bfb3f3

View File

@ -1398,7 +1398,7 @@ void DrawTargetSkia::Mask(const Pattern& aSource, const Pattern& aMask,
SkPaint maskPaint;
SetPaintPattern(maskPaint, aMask, lock);
sk_sp<SkShader> maskShader(maskPaint.getShader());
sk_sp<SkShader> maskShader(maskPaint.refShader());
if (!maskShader && maskPaint.getAlpha() != 0xFF) {
if (maskPaint.getAlpha() == 0) {
return;