Index: src/gpu/batches/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAAConvexPathRenderer.cpp b/src/gpu/batches/GrAAConvexPathRenderer.cpp |
index 2c5b4fef5f364b5d14fee9709e5b33b006a50ab5..91ee71a4897ed8e1b0649a420fda60695069b374 100644 |
--- a/src/gpu/batches/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/batches/GrAAConvexPathRenderer.cpp |
@@ -746,9 +746,8 @@ public: |
AAConvexPathBatch(GrColor color, const SkMatrix& viewMatrix, const SkPath& path) |
: INHERITED(ClassID()) { |
fGeoData.emplace_back(Geometry{color, viewMatrix, path}); |
robertphillips
2016/07/07 20:26:42
Why no AABloat ?
bsalomon
2016/07/07 23:40:57
Done.
|
- // compute bounds |
- fBounds = path.getBounds(); |
- viewMatrix.mapRect(&fBounds); |
+ this->setTransformedBounds(path.getBounds(), viewMatrix, HasAABloat::kNo, |
+ IsZeroArea::kNo); |
} |
const char* name() const override { return "AAConvexBatch"; } |
@@ -958,7 +957,7 @@ private: |
} |
fGeoData.push_back_n(that->fGeoData.count(), that->fGeoData.begin()); |
- this->joinBounds(that->bounds()); |
+ this->joinBounds(*that); |
return true; |
} |