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/include@11142 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/GrBackendEffectFactory.h b/gpu/GrBackendEffectFactory.h
index 6a18169..3a39dc0 100644
--- a/gpu/GrBackendEffectFactory.h
+++ b/gpu/GrBackendEffectFactory.h
@@ -67,7 +67,7 @@
     virtual ~GrBackendEffectFactory() {}
 
     static EffectKey GenID() {
-        GR_DEBUGCODE(static const int32_t kClassIDBits = 8 * sizeof(EffectKey) -
+        SkDEBUGCODE(static const int32_t kClassIDBits = 8 * sizeof(EffectKey) -
                            kTextureKeyBits - kEffectKeyBits - kAttribKeyBits);
         // fCurrEffectClassID has been initialized to kIllegalEffectClassID. The
         // atomic inc returns the old value not the incremented value. So we add
diff --git a/gpu/GrConfig.h b/gpu/GrConfig.h
index 060682e..e3fa1a4 100644
--- a/gpu/GrConfig.h
+++ b/gpu/GrConfig.h
@@ -236,17 +236,6 @@
 inline void GrDebugCrash(const char* msg) { GrPrintf(msg); SkASSERT(false); }
 
 /**
- *  GR_DEBUGCODE compiles the code X in debug builds only
- */
-#if !defined(GR_DEBUGCODE)
-    #ifdef SK_DEBUG
-        #define GR_DEBUGCODE(X) X
-    #else
-        #define GR_DEBUGCODE(X)
-    #endif
-#endif
-
-/**
  *  GR_STATIC_ASSERT is a compile time assertion. Depending on the platform
  *  it may print the message in the compiler log. Obviously, the condition must
  *  be evaluatable at compile time.
diff --git a/gpu/GrEffectStage.h b/gpu/GrEffectStage.h
index 561a789..8b6cb11 100644
--- a/gpu/GrEffectStage.h
+++ b/gpu/GrEffectStage.h
@@ -87,7 +87,7 @@
     private:
         bool fCoordChangeMatrixSet;
         SkMatrix fCoordChangeMatrix;
-        GR_DEBUGCODE(mutable SkAutoTUnref<const GrEffectRef> fEffectRef;)
+        SkDEBUGCODE(mutable SkAutoTUnref<const GrEffectRef> fEffectRef;)
 
         friend class GrEffectStage;
     };
@@ -104,8 +104,8 @@
             savedCoordChange->fCoordChangeMatrix = fCoordChangeMatrix;
         }
         SkASSERT(NULL == savedCoordChange->fEffectRef.get());
-        GR_DEBUGCODE(SkRef(fEffectRef.get());)
-        GR_DEBUGCODE(savedCoordChange->fEffectRef.reset(fEffectRef.get());)
+        SkDEBUGCODE(SkRef(fEffectRef.get());)
+        SkDEBUGCODE(savedCoordChange->fEffectRef.reset(fEffectRef.get());)
     }
 
     /**
@@ -117,7 +117,7 @@
             fCoordChangeMatrix = savedCoordChange.fCoordChangeMatrix;
         }
         SkASSERT(savedCoordChange.fEffectRef.get() == fEffectRef);
-        GR_DEBUGCODE(savedCoordChange.fEffectRef.reset(NULL);)
+        SkDEBUGCODE(savedCoordChange.fEffectRef.reset(NULL);)
     }
 
     /**