Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
index b178a68107965ba1e0fbca8e5fd18d14cc33ea6b..eb6a67dc20c9f32cc73c1c98494854ef6a1b7223 100644 |
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
@@ -109,8 +109,7 @@ bool GrAADistanceFieldPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) c |
// scaled to have bounds within 2.0f*kLargeMIP by 2.0f*kLargeMIP |
// the goal is to accelerate rendering of lots of small paths that may be scaling |
SkScalar maxScale = args.fViewMatrix->getMaxScale(); |
- SkRect bounds; |
- args.fShape->styledBounds(&bounds); |
+ SkRect bounds = args.fShape->styledBounds(); |
SkScalar maxDim = SkMaxScalar(bounds.width(), bounds.height()); |
return maxDim <= kMediumMIP && maxDim * maxScale <= 2.0f*kLargeMIP; |