diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-28 14:17:03 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-28 14:17:03 +0000 |
commit | 515dcd36032997ce335daa0163c6d67e851bcad1 (patch) | |
tree | a2f8bf979ed20e575e763d94ddea4cf7e89ce18c /include/gpu/GrConfig.h | |
parent | 4d213ab944d96ad60a243ac1ad21c793c1acc80a (diff) |
Replace uses of GR_DEBUG by SK_DEBUG.
BUG=None
R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/23137022
git-svn-id: http://skia.googlecode.com/svn/trunk@10978 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrConfig.h')
-rw-r--r-- | include/gpu/GrConfig.h | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/include/gpu/GrConfig.h b/include/gpu/GrConfig.h index d47ccb3fe8..ad8c1d21af 100644 --- a/include/gpu/GrConfig.h +++ b/include/gpu/GrConfig.h @@ -85,26 +85,14 @@ #endif #endif -// we need both GR_DEBUG and GR_RELEASE to be defined as 0 or 1 -// -#ifndef GR_DEBUG - #ifdef GR_RELEASE - #define GR_DEBUG !GR_RELEASE - #else - #ifdef NDEBUG - #define GR_DEBUG 0 - #else - #define GR_DEBUG 1 - #endif +#if !defined(SK_DEBUG) && !GR_RELEASE + #ifdef NDEBUG + #define GR_RELEASE 1 #endif #endif -#ifndef GR_RELEASE - #define GR_RELEASE !GR_DEBUG -#endif - -#if GR_DEBUG == GR_RELEASE - #error "GR_DEBUG and GR_RELEASE must not be the same" +#if defined(SK_DEBUG) && GR_RELEASE + #error "cannot define both SK_DEBUG and GR_RELEASE" #endif /////////////////////////////////////////////////////////////////////////////// @@ -142,8 +130,8 @@ typedef unsigned __int64 uint64_t; * A alternate user config file can be specified by defining * GR_USER_CONFIG_FILE. It should be defined relative to GrConfig.h * - * e.g. it can specify GR_DEBUG/GR_RELEASE as it please, change the BUILD - * target, or supply its own defines for anything else (e.g. GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) + * e.g. it can change the BUILD target or supply its own defines for anything + * else (e.g. GR_DEFAULT_TEXTURE_CACHE_MB_LIMIT) */ #if !defined(GR_USER_CONFIG_FILE) #include "GrUserConfig.h" @@ -212,7 +200,7 @@ typedef unsigned __int64 uint64_t; * GR_DEBUGBREAK is an unconditional break in debug builds. */ #if !defined(GR_DEBUGBREAK) - #if GR_DEBUG + #ifdef SK_DEBUG #define GR_DEBUGBREAK GR_ALWAYSBREAK #else #define GR_DEBUGBREAK @@ -236,7 +224,7 @@ typedef unsigned __int64 uint64_t; * GR_DEBUGASSERT is an assertion in debug builds only. */ #if !defined(GR_DEBUGASSERT) - #if GR_DEBUG + #ifdef SK_DEBUG #define GR_DEBUGASSERT(COND) GR_ALWAYSASSERT(COND) #else #define GR_DEBUGASSERT(COND) @@ -261,7 +249,7 @@ inline void GrDebugCrash(const char* msg) { GrPrintf(msg); SkASSERT(false); } * GR_DEBUGCODE compiles the code X in debug builds only */ #if !defined(GR_DEBUGCODE) - #if GR_DEBUG + #ifdef SK_DEBUG #define GR_DEBUGCODE(X) X #else #define GR_DEBUGCODE(X) |