diff options
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 983bd20cbe..45a4b78b18 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -38,8 +38,7 @@ bool get_shape_and_clip_bounds(int width, int height, *devShapeBounds = SkIRect::MakeWH(width, height); return false; } - SkRect shapeBounds; - shape.styledBounds(&shapeBounds); + SkRect shapeBounds = shape.styledBounds(); if (!shapeBounds.isEmpty()) { SkRect shapeSBounds; matrix.mapRect(&shapeSBounds, shapeBounds); |