Index: src/xps/SkXPSDevice.cpp |
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp |
index 7757cb8774d8f8425f9a7f3334ef170a5e1ac1f1..5db644c30ab00dafc68e71ff15a0787ca099fa6a 100644 |
--- a/src/xps/SkXPSDevice.cpp |
+++ b/src/xps/SkXPSDevice.cpp |
@@ -1220,7 +1220,7 @@ void SkXPSDevice::internalDrawRect(const SkDraw& d, |
const SkPaint& paint) { |
//Exit early if there is nothing to draw. |
if (d.fRC->isEmpty() || |
- (paint.getAlpha() == 0 && paint.getXfermode() == nullptr)) { |
+ (paint.getAlpha() == 0 && paint.isSrcOver())) { |
return; |
} |
@@ -1536,7 +1536,7 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
// nothing to draw |
if (d.fRC->isEmpty() || |
- (paint->getAlpha() == 0 && paint->getXfermode() == nullptr)) { |
+ (paint->getAlpha() == 0 && paint->isSrcOver())) { |
return; |
} |