| Index: src/gpu/GrPathUtils.cpp
|
| diff --git a/src/gpu/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp
|
| index 81dc103e0242a0ae7dea0a2f25a5eb84a40974df..8e7a01d0915aa74a039c8d8e05abf3540fd4e4c3 100644
|
| --- a/src/gpu/GrPathUtils.cpp
|
| +++ b/src/gpu/GrPathUtils.cpp
|
| @@ -166,6 +166,14 @@ int GrPathUtils::worstCasePointCount(const SkPath& path, int* subpaths,
|
| case SkPath::kLine_Verb:
|
| pointCount += 1;
|
| break;
|
| + case SkPath::kConic_Verb: {
|
| + SkScalar weight = iter.conicWeight();
|
| + SkAutoConicToQuads converter;
|
| + const SkPoint* quadPts = converter.computeQuads(pts, weight, 0.25f);
|
| + for (int i = 0; i < converter.countQuads(); ++i) {
|
| + pointCount += quadraticPointCount(quadPts + 2*i, tol);
|
| + }
|
| + }
|
| case SkPath::kQuad_Verb:
|
| pointCount += quadraticPointCount(pts, tol);
|
| break;
|
|
|