Index: src/gpu/GrOvalRenderer.cpp |
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp |
index dd9b19e17a4c218b99bcd8c6b2b0ef9e2d6bd5b0..70b5c7720e0402f237b0b71fef69c9cec1c870e7 100644 |
--- a/src/gpu/GrOvalRenderer.cpp |
+++ b/src/gpu/GrOvalRenderer.cpp |
@@ -331,8 +331,8 @@ void GrOvalRenderer::drawCircle(GrDrawTarget* target, |
SkScalar radius = vm.mapRadius(SkScalarHalf(circle.width())); |
SkScalar strokeWidth = vm.mapRadius(stroke.getWidth()); |
- GrDrawState::AutoDeviceCoordDraw adcd(drawState); |
- if (!adcd.succeeded()) { |
+ GrDrawState::AutoViewMatrixRestore avmr; |
+ if (!avmr.setIdentity(drawState)) { |
return; |
} |
@@ -493,8 +493,8 @@ bool GrOvalRenderer::drawEllipse(GrDrawTarget* target, |
yRadius += scaledStroke.fY; |
} |
- GrDrawState::AutoDeviceCoordDraw adcd(drawState); |
- if (!adcd.succeeded()) { |
+ GrDrawState::AutoViewMatrixRestore avmr; |
+ if (!avmr.setIdentity(drawState)) { |
return false; |
} |
@@ -650,8 +650,8 @@ bool GrOvalRenderer::drawSimpleRRect(GrDrawTarget* target, GrContext* context, b |
// reset to device coordinates |
GrDrawState* drawState = target->drawState(); |
- GrDrawState::AutoDeviceCoordDraw adcd(drawState); |
- if (!adcd.succeeded()) { |
+ GrDrawState::AutoViewMatrixRestore avmr; |
+ if (!avmr.setIdentity(drawState)) { |
return false; |
} |