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

Side by Side Diff: gm/gmmain.cpp

Issue 692153003: Make gpudft non-default config for gm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 /* 8 /*
9 * Code for the "gm" (Golden Master) rendering comparison tool. 9 * Code for the "gm" (Golden Master) rendering comparison tool.
10 * 10 *
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 1290
1291 static const ConfigData gRec[] = { 1291 static const ConfigData gRec[] = {
1292 { kN32_SkColorType, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "8888", true }, 1292 { kN32_SkColorType, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "8888", true },
1293 { kRGB_565_SkColorType, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true }, 1293 { kRGB_565_SkColorType, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true },
1294 #if SK_SUPPORT_GPU 1294 #if SK_SUPPORT_GPU
1295 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 0, kRW_ConfigFlag, "gpu", true }, 1295 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 0, kRW_ConfigFlag, "gpu", true },
1296 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 16, kRW_ConfigFlag, "msaa16", false}, 1296 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 16, kRW_ConfigFlag, "msaa16", false},
1297 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 4, kRW_ConfigFlag, "msaa4", false}, 1297 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 4, kRW_ConfigFlag, "msaa4", false},
1298 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNVPR_GLContextType, 4, kRW_ConfigFlag, "nvprmsaa4", true }, 1298 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNVPR_GLContextType, 4, kRW_ConfigFlag, "nvprmsaa4", true },
1299 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNVPR_GLContextType, 16, kRW_ConfigFlag, "nvprmsaa16", false}, 1299 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNVPR_GLContextType, 16, kRW_ConfigFlag, "nvprmsaa16", false},
1300 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 0, kRWDFT_ConfigFlag, "gpudft", true }, 1300 /* Not quite ready to turn on distance field text baselines */
1301 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNative_GLContextType , 0, kRWDFT_ConfigFlag, "gpudft", false },
1301 /* The gpudebug context does not generate meaningful images, so don't record 1302 /* The gpudebug context does not generate meaningful images, so don't record
1302 * the images it generates! We only run it to look for asserts. */ 1303 * the images it generates! We only run it to look for asserts. */
1303 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kDebug_GLContextType, 0, kNone_ConfigFlag, "gpudebug", kDebugOnly}, 1304 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kDebug_GLContextType, 0, kNone_ConfigFlag, "gpudebug", kDebugOnly},
1304 /* The gpunull context does the least amount of work possible and doesn't 1305 /* The gpunull context does the least amount of work possible and doesn't
1305 generate meaninful images, so don't record them!. It can be run to 1306 generate meaninful images, so don't record them!. It can be run to
1306 isolate the CPU-side processing expense from the GPU-side. 1307 isolate the CPU-side processing expense from the GPU-side.
1307 */ 1308 */
1308 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNull_GLContextType, 0, kNone_ConfigFlag, "gpunull", kDebugOnly}, 1309 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kNull_GLContextType, 0, kNone_ConfigFlag, "gpunull", kDebugOnly},
1309 #if SK_ANGLE 1310 #if SK_ANGLE
1310 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kANGLE_GLContextType, 0, kRW_ConfigFlag, "angle", true }, 1311 { kN32_SkColorType, kGPU_Backend, GrContextFactory::kANGLE_GLContextType, 0, kRW_ConfigFlag, "angle", true },
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2489 if (FLAGS_forceBWtext) { 2490 if (FLAGS_forceBWtext) {
2490 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2491 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2491 } 2492 }
2492 } 2493 }
2493 2494
2494 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2495 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2495 int main(int argc, char * const argv[]) { 2496 int main(int argc, char * const argv[]) {
2496 return tool_main(argc, (char**) argv); 2497 return tool_main(argc, (char**) argv);
2497 } 2498 }
2498 #endif 2499 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698