Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index 94fcee03134a375d00b199440c4aac10ac7b1518..1969bd03be29063f62139f16bb4e246aad63ba9e 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -273,13 +273,12 @@ void GrDrawContext::drawRect(GrRenderTarget* rt, |
if (needAA && canApplyAA) { |
SkASSERT(!viewMatrix.hasPerspective()); |
- SkRect devBoundRect; |
- viewMatrix.mapRect(&devBoundRect, rect); |
SkAutoTUnref<GrDrawBatch> batch; |
if (width >= 0) { |
- batch.reset(GrRectBatchFactory::CreateAAStroke(color, viewMatrix, rect, devBoundRect, |
- *strokeInfo)); |
+ batch.reset(GrRectBatchFactory::CreateAAStroke(color, viewMatrix, rect, *strokeInfo)); |
} else { |
+ SkRect devBoundRect; |
+ viewMatrix.mapRect(&devBoundRect, rect); |
batch.reset(GrRectBatchFactory::CreateAAFill(color, viewMatrix, rect, devBoundRect)); |
} |
fDrawTarget->drawBatch(pipelineBuilder, batch); |