OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |