| Index: src/gpu/GrClipMaskManager.cpp
|
| diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
|
| index 93c45641ee513495910d851372180a8f3c512e06..806928ca1412796f6049e720223d915264363442 100644
|
| --- a/src/gpu/GrClipMaskManager.cpp
|
| +++ b/src/gpu/GrClipMaskManager.cpp
|
| @@ -691,11 +691,13 @@ bool GrClipMaskManager::createStencilClipMask(InitialState initialState,
|
| fGpu->drawSimpleRect(element->getRect(), NULL);
|
| } else {
|
| GrAssert(Element::kPath_Type == element->getType());
|
| - if (canRenderDirectToStencil) {
|
| - *drawState->stencil() = gDrawToStencil;
|
| - pr->drawPath(*clipPath, stroke, fGpu, false);
|
| - } else {
|
| - pr->stencilPath(*clipPath, stroke, fGpu);
|
| + if (!clipPath->isEmpty()) {
|
| + if (canRenderDirectToStencil) {
|
| + *drawState->stencil() = gDrawToStencil;
|
| + pr->drawPath(*clipPath, stroke, fGpu, false);
|
| + } else {
|
| + pr->stencilPath(*clipPath, stroke, fGpu);
|
| + }
|
| }
|
| }
|
| }
|
|
|