| Index: src/gpu/GrPathRenderer.h
|
| diff --git a/src/gpu/GrPathRenderer.h b/src/gpu/GrPathRenderer.h
|
| index f1402d6b2390563af482cde9bc79ff92983824b1..a64b9e34444b10b23911ceea20607faec2f41dc1 100644
|
| --- a/src/gpu/GrPathRenderer.h
|
| +++ b/src/gpu/GrPathRenderer.h
|
| @@ -117,6 +117,7 @@ public:
|
| const SkStrokeRec& stroke,
|
| GrDrawTarget* target,
|
| bool antiAlias) {
|
| + GrAssert(!path.isEmpty());
|
| GrAssert(this->canDrawPath(path, stroke, target, antiAlias));
|
| GrAssert(target->drawState()->getStencil().isDisabled() ||
|
| kNoRestriction_StencilSupport == this->getStencilSupport(path, stroke, target));
|
| @@ -132,6 +133,7 @@ public:
|
| * @param target target that the path will be rendered to
|
| */
|
| void stencilPath(const SkPath& path, const SkStrokeRec& stroke, GrDrawTarget* target) {
|
| + GrAssert(!path.isEmpty());
|
| GrAssert(kNoSupport_StencilSupport != this->getStencilSupport(path, stroke, target));
|
| this->onStencilPath(path, stroke, target);
|
| }
|
|
|