diff options
author | tfarina <tfarina@chromium.org> | 2014-10-31 07:11:12 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-31 07:11:12 -0700 |
commit | 38406c82b913350e55fa04af8c1941cd9b4aff52 (patch) | |
tree | 66fa89ab5909905fed08bc5a34093507a94ad5b5 /include | |
parent | 8955b0e52490fa71e405e06ec4649d0955d1d537 (diff) |
Cleanup: Go with SkDebugf instead of GrPrintf.
Since GrPrintf is just defined to SkDebugf, we can go with the later
directly.
BUG=None
TEST=None
R=bsalomon@google.com
Review URL: https://codereview.chromium.org/695663003
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrConfig.h | 8 | ||||
-rw-r--r-- | include/gpu/gl/GrGLConfig.h | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/include/gpu/GrConfig.h b/include/gpu/GrConfig.h index 8e65f51b25..e70c978fc0 100644 --- a/include/gpu/GrConfig.h +++ b/include/gpu/GrConfig.h @@ -98,12 +98,6 @@ typedef unsigned __int64 uint64_t; // postconfig section: // -// By now we must have a GR_..._BUILD symbol set to 1, and a decision about -// debug -vs- release -// - -#define GrPrintf SkDebugf - /** * GR_STRING makes a string of X where X is expanded before conversion to a string * if X itself contains macros. @@ -167,7 +161,7 @@ typedef unsigned __int64 uint64_t; #define GR_ALWAYSASSERT(COND) \ do { \ if (!(COND)) { \ - GrPrintf("%s %s failed\n", GR_FILE_AND_LINE_STR, #COND); \ + SkDebugf("%s %s failed\n", GR_FILE_AND_LINE_STR, #COND); \ GR_ALWAYSBREAK; \ } \ } while (false) diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h index 4b3ab8b258..b8cc216019 100644 --- a/include/gpu/gl/GrGLConfig.h +++ b/include/gpu/gl/GrGLConfig.h @@ -30,7 +30,7 @@ * file (if one is in use). If a GR_GL_CUSTOM_SETUP_HEADER is used they can * also be placed there. * - * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using GrPrintf. Defaults to + * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using SkDebugf. Defaults to * 0. Logging can be enabled and disabled at runtime using a debugger via to * global gLogCallsGL. The initial value of gLogCallsGL is controlled by * GR_GL_LOG_CALLS_START. |