Chromium Code Reviews| Index: src/core/SkCanvas.cpp |
| diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
| index 7043ec3bc346396b7be596b1d0a865a47dc43f0a..6f6bbf1e038db7376afcaea6d8db96c3d3617de0 100644 |
| --- a/src/core/SkCanvas.cpp |
| +++ b/src/core/SkCanvas.cpp |
| @@ -2124,8 +2124,11 @@ void SkCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { |
| if (r.width() <= 0 && r.height() <= 0) { |
| if (path.isInverseFillType()) { |
| this->internalDrawPaint(paint); |
| + return; |
| + } |
| + if (path.hasOnlyMoveTos()) { |
|
reed1
2015/09/03 19:07:27
Is this test for correctness or for performance?
caryclark
2015/09/03 19:37:57
Correctness. Removing this test causes EmptyPath t
|
| + return; |
| } |
| - return; |
| } |
| LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type, bounds) |