Index: src/gpu/GrDrawState.cpp |
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp |
index d300f2b9bbd12d6d78f66bbccedefe2a144a82f8..c8a6ac21543869bb5ae6a7bb5e6a45da8c5e6356 100644 |
--- a/src/gpu/GrDrawState.cpp |
+++ b/src/gpu/GrDrawState.cpp |
@@ -191,7 +191,7 @@ void GrDrawState::onReset(const SkMatrix* initialViewMatrix) { |
} |
bool GrDrawState::setIdentityViewMatrix() { |
- if (this->numTotalStages()) { |
+ if (this->numFragmentStages()) { |
SkMatrix invVM; |
if (!fViewMatrix.invert(&invVM)) { |
// sad trombone sound |
@@ -549,7 +549,7 @@ bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) { |
drawState->invalidateOptState(); |
fViewMatrix = drawState->getViewMatrix(); |
- if (0 == drawState->numTotalStages()) { |
+ if (0 == drawState->numFragmentStages()) { |
drawState->fViewMatrix.reset(); |
fDrawState = drawState; |
fNumColorStages = 0; |
@@ -570,7 +570,7 @@ bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) { |
} |
void GrDrawState::AutoViewMatrixRestore::doEffectCoordChanges(const SkMatrix& coordChangeMatrix) { |
- fSavedCoordChanges.reset(fDrawState->numTotalStages()); |
+ fSavedCoordChanges.reset(fDrawState->numFragmentStages()); |
int i = 0; |
fNumColorStages = fDrawState->numColorStages(); |