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

Side by Side Diff: gm/gmmain.cpp

Issue 139803003: Add NVPR configs to GM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: change names Created 6 years, 11 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 | 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 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 static const ConfigData gRec[] = { 1284 static const ConfigData gRec[] = {
1285 { SkBitmap::kARGB_8888_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "8888", true }, 1285 { SkBitmap::kARGB_8888_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "8888", true },
1286 #if 0 // stop testing this (for now at least) since we want to remove support for it (soon please!!!) 1286 #if 0 // stop testing this (for now at least) since we want to remove support for it (soon please!!!)
1287 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true }, 1287 { SkBitmap::kARGB_4444_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "4444", true },
1288 #endif 1288 #endif
1289 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true }, 1289 { SkBitmap::kRGB_565_Config, kRaster_Backend, kDontCare_GLContextType, 0, kRW_ConfigFlag, "565", true },
1290 #if SK_SUPPORT_GPU 1290 #if SK_SUPPORT_GPU
1291 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true }, 1291 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 0, kRW_ConfigFlag, "gpu", true },
1292 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false}, 1292 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 16, kRW_ConfigFlag, "msaa16", false},
1293 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false}, 1293 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNative_GL ContextType, 4, kRW_ConfigFlag, "msaa4", false},
1294 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNVPR_GLCo ntextType, 4, kRW_ConfigFlag, "nvprmsaa4", true },
1295 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNVPR_GLCo ntextType, 16, kRW_ConfigFlag, "nvprmsaa16", false},
1294 /* The gpudebug context does not generate meaningful images, so don't record 1296 /* The gpudebug context does not generate meaningful images, so don't record
1295 * the images it generates! We only run it to look for asserts. */ 1297 * the images it generates! We only run it to look for asserts. */
1296 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", kDebugOnly}, 1298 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kDebug_GLC ontextType, 0, kNone_ConfigFlag, "gpudebug", kDebugOnly},
1297 /* The gpunull context does the least amount of work possible and doesn't 1299 /* The gpunull context does the least amount of work possible and doesn't
1298 generate meaninful images, so don't record them!. It can be run to 1300 generate meaninful images, so don't record them!. It can be run to
1299 isolate the CPU-side processing expense from the GPU-side. 1301 isolate the CPU-side processing expense from the GPU-side.
1300 */ 1302 */
1301 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNull_GLCo ntextType, 0, kNone_ConfigFlag, "gpunull", kDebugOnly}, 1303 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kNull_GLCo ntextType, 0, kNone_ConfigFlag, "gpunull", kDebugOnly},
1302 #if SK_ANGLE 1304 #if SK_ANGLE
1303 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 0, kRW_ConfigFlag, "angle", true }, 1305 { SkBitmap::kARGB_8888_Config, kGPU_Backend, GrContextFactory::kANGLE_GLC ontextType, 0, kRW_ConfigFlag, "angle", true },
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
2409 if (FLAGS_forceBWtext) { 2411 if (FLAGS_forceBWtext) {
2410 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2412 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2411 } 2413 }
2412 } 2414 }
2413 2415
2414 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2416 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2415 int main(int argc, char * const argv[]) { 2417 int main(int argc, char * const argv[]) {
2416 return tool_main(argc, (char**) argv); 2418 return tool_main(argc, (char**) argv);
2417 } 2419 }
2418 #endif 2420 #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