Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: bench/benchmain.cpp

Issue 23137022: Replace uses of GR_DEBUG by SK_DEBUG. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: common.gypi Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | include/gpu/GrConfig.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "BenchTimer.h" 10 #include "BenchTimer.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 { SkBitmap::kARGB_8888_Config, "8888", 0, kRaster_Backend, kD ontCareGLCtxType, true }, 249 { SkBitmap::kARGB_8888_Config, "8888", 0, kRaster_Backend, kD ontCareGLCtxType, true },
250 { SkBitmap::kRGB_565_Config, "565", 0, kRaster_Backend, kD ontCareGLCtxType, true }, 250 { SkBitmap::kRGB_565_Config, "565", 0, kRaster_Backend, kD ontCareGLCtxType, true },
251 #if SK_SUPPORT_GPU 251 #if SK_SUPPORT_GPU
252 { SkBitmap::kARGB_8888_Config, "GPU", 0, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, true }, 252 { SkBitmap::kARGB_8888_Config, "GPU", 0, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, true },
253 { SkBitmap::kARGB_8888_Config, "MSAA4", 4, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, false }, 253 { SkBitmap::kARGB_8888_Config, "MSAA4", 4, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, false },
254 { SkBitmap::kARGB_8888_Config, "MSAA16", 16, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, false }, 254 { SkBitmap::kARGB_8888_Config, "MSAA16", 16, kGPU_Backend, Gr ContextFactory::kNative_GLContextType, false },
255 #if SK_ANGLE 255 #if SK_ANGLE
256 { SkBitmap::kARGB_8888_Config, "ANGLE", 0, kGPU_Backend, Gr ContextFactory::kANGLE_GLContextType, true }, 256 { SkBitmap::kARGB_8888_Config, "ANGLE", 0, kGPU_Backend, Gr ContextFactory::kANGLE_GLContextType, true },
257 #endif // SK_ANGLE 257 #endif // SK_ANGLE
258 #ifdef SK_DEBUG 258 #ifdef SK_DEBUG
259 { SkBitmap::kARGB_8888_Config, "Debug", 0, kGPU_Backend, Gr ContextFactory::kDebug_GLContextType, GR_DEBUG }, 259 { SkBitmap::kARGB_8888_Config, "Debug", 0, kGPU_Backend, Gr ContextFactory::kDebug_GLContextType, SK_DEBUG },
bsalomon 2013/08/23 12:54:23 Does this work? GR_DEBUG was always 0 or 1, but SK
tfarina 2013/08/23 23:26:17 just learned something new today :) #if vs #ifdef
260 #endif // SK_DEBUG 260 #endif // SK_DEBUG
261 { SkBitmap::kARGB_8888_Config, "NULLGPU", 0, kGPU_Backend, Gr ContextFactory::kNull_GLContextType, true }, 261 { SkBitmap::kARGB_8888_Config, "NULLGPU", 0, kGPU_Backend, Gr ContextFactory::kNull_GLContextType, true },
262 #endif // SK_SUPPORT_GPU 262 #endif // SK_SUPPORT_GPU
263 }; 263 };
264 264
265 static int findConfig(const char config[]) { 265 static int findConfig(const char config[]) {
266 for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); i++) { 266 for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); i++) {
267 if (!strcmp(config, gConfigs[i].fName)) { 267 if (!strcmp(config, gConfigs[i].fName)) {
268 return i; 268 return i;
269 } 269 }
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 } 966 }
967 967
968 return 0; 968 return 0;
969 } 969 }
970 970
971 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 971 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
972 int main(int argc, char * const argv[]) { 972 int main(int argc, char * const argv[]) {
973 return tool_main(argc, (char**) argv); 973 return tool_main(argc, (char**) argv);
974 } 974 }
975 #endif 975 #endif
OLDNEW
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | include/gpu/GrConfig.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698