Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
index eb6a67dc20c9f32cc73c1c98494854ef6a1b7223..b178a68107965ba1e0fbca8e5fd18d14cc33ea6b 100644 |
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
@@ -109,7 +109,8 @@ |
// 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(); |
+ SkRect bounds; |
+ args.fShape->styledBounds(&bounds); |
SkScalar maxDim = SkMaxScalar(bounds.width(), bounds.height()); |
return maxDim <= kMediumMIP && maxDim * maxScale <= 2.0f*kLargeMIP; |