| Index: bench/benchmain.cpp
|
| diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
|
| index 9cb7468be0741f9ddb59ed14f6d49bd959b3059f..f19065829c556391627578b0a6c1470a4bf744ca 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
|
| };
|
|
|