| Index: src/gpu/GrDefaultPathRenderer.cpp
|
| diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp
|
| index e4f54ccd61495790a584940ebd24f92898a8b1c6..131b518296a1f9aaa07e5b412d347920002f6e38 100644
|
| --- a/src/gpu/GrDefaultPathRenderer.cpp
|
| +++ b/src/gpu/GrDefaultPathRenderer.cpp
|
| @@ -290,6 +290,11 @@ public:
|
| isIndexed = isIndexed || contourCount > 1;
|
| }
|
|
|
| + if (maxVertices == 0 || maxVertices > ((int)SK_MaxU16 + 1)) {
|
| + SkDebugf("Cannot render path (%d)\n", maxVertices);
|
| + return;
|
| + }
|
| +
|
| // determine primitiveType
|
| int maxIndices = 0;
|
| GrPrimitiveType primitiveType;
|
|
|