Replace uses of GR_DEBUGCODE by SkDEBUGCODE.
BUG=None
TEST=none, no functional changes.
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23703010
git-svn-id: http://skia.googlecode.com/svn/trunk@11142 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index 0aa4215..d1d6c58 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -400,7 +400,7 @@
void GrDrawState::AutoViewMatrixRestore::restore() {
if (NULL != fDrawState) {
- GR_DEBUGCODE(--fDrawState->fBlockEffectRemovalCnt;)
+ SkDEBUGCODE(--fDrawState->fBlockEffectRemovalCnt;)
fDrawState->fCommon.fViewMatrix = fViewMatrix;
SkASSERT(fDrawState->numColorStages() >= fNumColorStages);
int numCoverageStages = fSavedCoordChanges.count() - fNumColorStages;
@@ -431,7 +431,7 @@
drawState->fCommon.fViewMatrix.preConcat(preconcatMatrix);
this->doEffectCoordChanges(preconcatMatrix);
- GR_DEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
+ SkDEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
}
bool GrDrawState::AutoViewMatrixRestore::setIdentity(GrDrawState* drawState) {
@@ -451,7 +451,7 @@
fDrawState = drawState;
fNumColorStages = 0;
fSavedCoordChanges.reset(0);
- GR_DEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
+ SkDEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
return true;
} else {
SkMatrix inv;
@@ -461,7 +461,7 @@
drawState->fCommon.fViewMatrix.reset();
fDrawState = drawState;
this->doEffectCoordChanges(inv);
- GR_DEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
+ SkDEBUGCODE(++fDrawState->fBlockEffectRemovalCnt;)
return true;
}
}