Index: src/core/SkCanvas.cpp |
=================================================================== |
--- src/core/SkCanvas.cpp (revision 8834) |
+++ src/core/SkCanvas.cpp (working copy) |
@@ -1581,12 +1581,16 @@ |
if (rrect.isRect()) { |
// call the non-virtual version |
this->SkCanvas::drawRect(rrect.getBounds(), paint); |
- } else { |
- SkPath path; |
- path.addRRect(rrect); |
- // call the non-virtual version |
- this->SkCanvas::drawPath(path, paint); |
+ return; |
+ } |
+ |
robertphillips
2013/04/24 15:13:30
Hooray!
|
+ LOOPER_BEGIN(paint, SkDrawFilter::kRRect_Type) |
+ |
+ while (iter.next()) { |
+ iter.fDevice->drawRRect(iter, rrect, looper.paint()); |
} |
+ |
+ LOOPER_END |
} |