Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 0409057cab13828945543a8e1e0843e5744f4a0b..ec43987114cf589a1f337c2048f3fc32e16d8e0c 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -707,6 +707,10 @@ public: |
@param paint The paint used to draw the region |
*/ |
void drawRegion(const SkRegion& region, const SkPaint& paint) { |
+ if (region.isEmpty()) { |
+ return; |
+ } |
+ |
this->onDrawRegion(region, paint); |
} |