aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xsrc/gpu/GrContext.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index da35033b77..3a93404af1 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -766,17 +766,14 @@ void GrContext::drawRect(const GrPaint& paint,
!target->getDrawState().getRenderTarget()->isMultisampled();
bool doAA = needAA && apply_aa_to_rect(target, rect, width, matrix, &devBoundRect);
- const SkStrokeRec& strokeRec = strokeInfo->getStrokeRec();
-
if (doAA) {
GrDrawState::AutoViewMatrixRestore avmr;
if (!avmr.setIdentity(target->drawState())) {
return;
}
if (width >= 0) {
- fAARectRenderer->strokeAARect(target, rect,
- matrix, devBoundRect,
- strokeRec);
+ const SkStrokeRec& strokeRec = strokeInfo->getStrokeRec();
+ fAARectRenderer->strokeAARect(target, rect, matrix, devBoundRect, strokeRec);
} else {
// filled AA rect
fAARectRenderer->fillAARect(target,