Index: bench/benchmain.cpp |
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp |
index c2ba7f388ab90a02a16bccd311bf67a93f0e6168..cec21df7ae9ad8974e50da5afc85065507d455ed 100644 |
--- a/bench/benchmain.cpp |
+++ b/bench/benchmain.cpp |
@@ -42,6 +42,12 @@ enum benchModes { |
kPictureRecord_benchModes |
}; |
+#ifdef SK_DEBUG |
+static const bool kDebugOnly = true; |
+#else |
+static const bool kDebugOnly = false; |
+#endif |
+ |
/////////////////////////////////////////////////////////////////////////////// |
static void erase(SkBitmap& bm) { |
@@ -255,9 +261,7 @@ static const struct { |
#if SK_ANGLE |
{ SkBitmap::kARGB_8888_Config, "ANGLE", 0, kGPU_Backend, GrContextFactory::kANGLE_GLContextType, true }, |
#endif // SK_ANGLE |
-#ifdef SK_DEBUG |
- { SkBitmap::kARGB_8888_Config, "Debug", 0, kGPU_Backend, GrContextFactory::kDebug_GLContextType, GR_DEBUG }, |
-#endif // SK_DEBUG |
+ { SkBitmap::kARGB_8888_Config, "Debug", 0, kGPU_Backend, GrContextFactory::kDebug_GLContextType, kDebugOnly }, |
{ SkBitmap::kARGB_8888_Config, "NULLGPU", 0, kGPU_Backend, GrContextFactory::kNull_GLContextType, true }, |
#endif // SK_SUPPORT_GPU |
}; |