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