diff options
author | bsalomon <bsalomon@google.com> | 2014-10-24 09:34:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-24 09:34:41 -0700 |
commit | 24234fe77718a553ccc6ffdea0f2ee3ef414e0b6 (patch) | |
tree | 21f90c197b4bf34e17dd99dbb4ee6f7fd9d71835 /include | |
parent | 42d1db2ccc42b18d6c906de7039b18acb65f4525 (diff) |
Build gpu stats tracking in dev builds.
Fix cache stats, add more info.
BUG=skia:2889
Review URL: https://codereview.chromium.org/655263005
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrConfig.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/gpu/GrConfig.h b/include/gpu/GrConfig.h index 86ad63ad6e..8e65f51b25 100644 --- a/include/gpu/GrConfig.h +++ b/include/gpu/GrConfig.h @@ -33,11 +33,19 @@ */ #if !defined(GR_CACHE_STATS) - #define GR_CACHE_STATS 0 + #ifdef SK_DEVELOPER + #define GR_CACHE_STATS 1 + #else + #define GR_CACHE_STATS 0 + #endif #endif #if !defined(GR_GPU_STATS) -#define GR_GPU_STATS 0 + #ifdef SK_DEVELOPER + #define GR_GPU_STATS 1 + #else + #define GR_GPU_STATS 0 + #endif #endif /////////////////////////////////////////////////////////////////////////////// |