aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-08 06:40:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-08 06:40:57 -0700
commit88cf17d099085b8085ab11571b5094163dbb2c84 (patch)
tree0737705697caa8998453d5519a19a6f12b888104 /src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
parentac41bac40f5a80d2bc5ccec584c23478a6900179 (diff)
Consolidate handling of infinitely thin primitives and aa bloat handing WRT batch bounds.
Diffstat (limited to 'src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp')
-rw-r--r--src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
index 4629619860..20d93d8e90 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);
}
- viewMatrix.mapRect(&fBounds);
+ this->setTransformedBounds(bounds, viewMatrix, HasAABloat::kYes, 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;
}