diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/GrAAConvexPathRenderer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp index 7638067f1a..c539060aac 100644 --- a/src/gpu/GrAAConvexPathRenderer.cpp +++ b/src/gpu/GrAAConvexPathRenderer.cpp @@ -53,10 +53,9 @@ typedef SkTArray<Segment, true> SegmentArray; void center_of_mass(const SegmentArray& segments, SkPoint* c) { GrScalar area = 0; - SkPoint center; - center.set(0, 0); + SkPoint center = {0, 0}; int count = segments.count(); - SkPoint p0; + SkPoint p0 = {0, 0}; if (count > 2) { // We translate the polygon so that the first point is at the origin. // This avoids some precision issues with small area polygons far away |