Index: src/device/xps/SkXPSDevice.cpp |
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp |
index 86c729c9e405cd516f062e69ac87da01e442ccc9..48233bb55437a37a90fba0c6726a2baf9bc94e2e 100644 |
--- a/src/device/xps/SkXPSDevice.cpp |
+++ b/src/device/xps/SkXPSDevice.cpp |
@@ -1628,12 +1628,8 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
//[Mask -> Mask] |
SkMask filteredMask; |
- if (filter && |
- filter->filterMask(&filteredMask, *mask, *d.fMatrix, nullptr)) { |
- |
+ if (filter && filter->filterMask(&filteredMask, *mask, *d.fMatrix, nullptr)) { |
mask = &filteredMask; |
- } else { |
- filteredMask.fImage = nullptr; |
} |
SkAutoMaskFreeImage filteredAmi(filteredMask.fImage); |
@@ -1675,13 +1671,8 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
//[Mask -> Mask] |
SkMask filteredMask; |
- if (filter->filterMask(&filteredMask, |
- rasteredMask, |
- matrix, |
- nullptr)) { |
+ if (filter->filterMask(&filteredMask, rasteredMask, matrix, nullptr)) { |
mask = &filteredMask; |
- } else { |
- filteredMask.fImage = nullptr; |
} |
SkAutoMaskFreeImage filteredAmi(filteredMask.fImage); |