Index: src/effects/SkBlurMaskFilter.cpp |
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp |
index aa576697e3a8c85779b5864c409af4b22ddcb587..97ae436367bdd33909e177b8f4245864d7ed0ba9 100644 |
--- a/src/effects/SkBlurMaskFilter.cpp |
+++ b/src/effects/SkBlurMaskFilter.cpp |
@@ -1184,7 +1184,9 @@ bool SkBlurMaskFilterImpl::canFilterMaskGPU(const SkRect& srcBounds, |
// Outset srcRect and clipRect by 3 * sigma, to compute affected blur area. |
srcRect.outset(sigma3, sigma3); |
clipRect.outset(sigma3, sigma3); |
- srcRect.intersect(clipRect); |
+ if (!srcRect.intersect(clipRect)) { |
+ srcRect.setEmpty(); |
+ } |
*maskRect = srcRect; |
return true; |
} |