Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 7ee4e620e58ce040d9cddd1b1f7d51a0cf779a06..eec1389a81f8d6626aa9cbea3059f148097ca626 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -976,6 +976,9 @@ void GrDrawContext::internalDrawPath(const GrClip& clip, |
: GrPathRendererChain::kColor_DrawType; |
GrShape shape(path, style); |
+ if (shape.isEmpty()) { |
+ return; |
+ } |
GrPathRenderer::CanDrawPathArgs canDrawArgs; |
canDrawArgs.fShaderCaps = fDrawingManager->getContext()->caps()->shaderCaps(); |
canDrawArgs.fViewMatrix = &viewMatrix; |