Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index d25709f0ea8c544017a258ff9a6f79e2c1912dce..17a406dba3144d20d34f16eac4986a8304d011b3 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -787,8 +787,8 @@ void GrContext::drawRect(const GrPaint& paint, |
&combinedMatrix, &devRect, |
&useVertexCoverage); |
if (doAA) { |
- GrDrawState::AutoDeviceCoordDraw adcd(target->drawState()); |
- if (!adcd.succeeded()) { |
+ GrDrawState::AutoViewMatrixRestore avmr; |
+ if (!avmr.setIdentity(target->drawState())) { |
return; |
} |
if (width >= 0) { |
@@ -1066,14 +1066,15 @@ void GrContext::drawPath(const GrPaint& paint, const SkPath& path, const SkStrok |
SkRect rects[2]; |
if (is_nested_rects(target, path, stroke, rects, &useVertexCoverage)) { |
- GrDrawState::AutoDeviceCoordDraw adcd(target->drawState()); |
- if (!adcd.succeeded()) { |
+ SkMatrix origViewMatrix = target->getDrawState().getViewMatrix(); |
+ GrDrawState::AutoViewMatrixRestore avmr; |
+ if (!avmr.setIdentity(target->drawState())) { |
return; |
} |
fAARectRenderer->fillAANestedRects(this->getGpu(), target, |
rects, |
- adcd.getOriginalMatrix(), |
+ origViewMatrix, |
useVertexCoverage); |
return; |
} |