mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
Bug 1888333. r=aosmond, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D205993
This commit is contained in:
parent
224c0599fd
commit
46d5bfb3f3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user