Chromium Code Reviews| Index: src/core/SkCanvas.cpp |
| diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
| index 93dc14bd1e5e6700c7b2bef784255dc86b4fff90..5a0821144af66047a6f17e4435526432077e0983 100644 |
| --- a/src/core/SkCanvas.cpp |
| +++ b/src/core/SkCanvas.cpp |
| @@ -1746,7 +1746,9 @@ void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) { |
| return; |
| } |
| } |
| - if (path.isEmpty()) { |
| + |
| + const SkRect& r = path.getBounds(); |
| + if (r.width() <= 0 && r.height() <= 0) { |
|
reed2
2014/02/21 10:48:49
Do we have unit-tests added to exercise this?
Does
yunchao
2014/02/24 03:07:20
Hi Mike,
Do you think we need to add a unit-tests
|
| if (path.isInverseFillType()) { |
| this->internalDrawPaint(paint); |
| } |