Replace GrDrawState::AutoDeviceCoordDraw with GrDrawState::AutoViewMatrixRestore::setIdentity(). s
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/15780002
git-svn-id: http://skia.googlecode.com/svn/trunk@9331 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDefaultPathRenderer.cpp b/src/gpu/GrDefaultPathRenderer.cpp
index 87deb9c..13bfe92 100644
--- a/src/gpu/GrDefaultPathRenderer.cpp
+++ b/src/gpu/GrDefaultPathRenderer.cpp
@@ -459,7 +459,7 @@
drawState->disableState(GrDrawState::kNoColorWrites_StateBit);
}
GrRect bounds;
- GrDrawState::AutoDeviceCoordDraw adcd;
+ GrDrawState::AutoViewMatrixRestore avmr;
if (reverse) {
GrAssert(NULL != drawState->getRenderTarget());
// draw over the dev bounds (which will be the whole dst surface for inv fill).
@@ -470,7 +470,7 @@
drawState->getViewInverse(&vmi)) {
vmi.mapRect(&bounds);
} else {
- adcd.set(drawState);
+ avmr.setIdentity(drawState);
}
} else {
bounds = path.getBounds();