Chromium Code Reviews| Index: src/core/SkCanvas.cpp |
| =================================================================== |
| --- src/core/SkCanvas.cpp (revision 10968) |
| +++ src/core/SkCanvas.cpp (working copy) |
| @@ -1720,6 +1720,13 @@ |
| return; |
| } |
| + // if the path is a rect, we can call drawRect to try GrAARectRenderer. |
|
bsalomon
2013/08/29 12:49:58
This comment is specific to SkGpuDevice, perhaps i
|
| + SkRect rect; |
| + if (path.isRect(&rect)) { |
| + drawRect(rect, paint); |
|
bsalomon
2013/08/29 12:49:58
style-nit:
this->drawRect(...);
|
| + return; |
| + } |
| + |
| LOOPER_BEGIN(paint, SkDrawFilter::kPath_Type) |
| while (iter.next()) { |