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

Side by Side Diff: gm/gmmain.cpp

Issue 465073002: Add entry point for passing options to the GrContextFactory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Code review comments Created 6 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
« no previous file with comments | « bench/nanobench.cpp ('k') | include/gpu/GrContextFactory.h » ('j') | 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 2266 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 GMMain gmmain; 2277 GMMain gmmain;
2278 2278
2279 SkTDArray<size_t> configs; 2279 SkTDArray<size_t> configs;
2280 2280
2281 int moduloRemainder = -1; 2281 int moduloRemainder = -1;
2282 int moduloDivisor = -1; 2282 int moduloDivisor = -1;
2283 SkTDArray<const PDFRasterizerData*> pdfRasterizers; 2283 SkTDArray<const PDFRasterizerData*> pdfRasterizers;
2284 SkTDArray<SkScalar> tileGridReplayScales; 2284 SkTDArray<SkScalar> tileGridReplayScales;
2285 #if SK_SUPPORT_GPU 2285 #if SK_SUPPORT_GPU
2286 GrGLStandard gpuAPI = kNone_GrGLStandard; 2286 GrGLStandard gpuAPI = kNone_GrGLStandard;
2287 GrContextFactory* grFactory = new GrContextFactory; 2287 GrContextFactory* grFactory = new GrContextFactory(GrContext::Options());
2288 #else 2288 #else
2289 GrGLStandard gpuAPI = 0; 2289 GrGLStandard gpuAPI = 0;
2290 GrContextFactory* grFactory = NULL; 2290 GrContextFactory* grFactory = NULL;
2291 #endif 2291 #endif
2292 2292
2293 if (FLAGS_dryRun) { 2293 if (FLAGS_dryRun) {
2294 SkDebugf( "Doing a dry run; no tests will actually be executed.\n"); 2294 SkDebugf( "Doing a dry run; no tests will actually be executed.\n");
2295 } 2295 }
2296 2296
2297 if (!parse_flags_modulo(&moduloRemainder, &moduloDivisor) || 2297 if (!parse_flags_modulo(&moduloRemainder, &moduloDivisor) ||
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2494 if (FLAGS_forceBWtext) { 2494 if (FLAGS_forceBWtext) {
2495 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2495 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2496 } 2496 }
2497 } 2497 }
2498 2498
2499 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2499 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2500 int main(int argc, char * const argv[]) { 2500 int main(int argc, char * const argv[]) {
2501 return tool_main(argc, (char**) argv); 2501 return tool_main(argc, (char**) argv);
2502 } 2502 }
2503 #endif 2503 #endif
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | include/gpu/GrContextFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698