Chromium Code Reviews| Index: src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| index 46296198607db32d107a4f869ac4505ca17e30f6..a96018014a41dc46dec1dddad5eae72f37e631e2 100644 |
| --- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| +++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp |
| @@ -131,7 +131,7 @@ public: |
| fGeoData.emplace_back(Geometry{color, viewMatrix, path, strokeWidth, join, miterLimit}); |
| // compute bounds |
| - fBounds = path.getBounds(); |
| + SkRect bounds = path.getBounds(); |
| SkScalar w = strokeWidth; |
| if (w > 0) { |
| w /= 2; |
| @@ -139,9 +139,9 @@ public: |
| if (SkPaint::kMiter_Join == join && w > 1.f) { |
| w *= miterLimit; |
| } |
| - fBounds.outset(w, w); |
| + bounds.outset(w, w); |
| } |
|
robertphillips
2016/07/07 20:26:42
Why no AABloat here ?
bsalomon
2016/07/07 23:40:57
Done.
|
| - viewMatrix.mapRect(&fBounds); |
| + this->setTransformedBounds(bounds, viewMatrix, HasAABloat::kNo, IsZeroArea::kNo); |
| } |
| const char* name() const override { return "AAConvexBatch"; } |
| @@ -284,7 +284,7 @@ private: |
| } |
| fGeoData.push_back_n(that->fGeoData.count(), that->fGeoData.begin()); |
| - this->joinBounds(that->bounds()); |
| + this->joinBounds(*that); |
| return true; |
| } |