1 /* 2 * Copyright 2014 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #include "SkCommonFlags.h" 9 10 DEFINE_string(config, "565 8888 gpu nonrendering angle hwui ", "Options: " 11 "565 8888 angle debug gpu gpudebug gpudft gpunull hwui mesa " 12 "msaa16 msaa4 nonrendering null nullgpu nvprmsaa16 nvprmsaa4 " 13 "pdf skp svg xps (and maybe more)"); 14 15 DEFINE_bool(cpu, true, "master switch for running CPU-bound work."); 16 17 DEFINE_bool(dryRun, false, 18 "just print the tests that would be run, without actually running them."); 19 20 DEFINE_bool(gpu, true, "master switch for running GPU-bound work."); 21 22 DEFINE_string(gpuAPI, "", "Force use of specific gpu API. Using \"gl\" " 23 "forces OpenGL API. Using \"gles\" forces OpenGL ES API. " 24 "Defaults to empty string, which selects the API native to the " 25 "system."); 26 27 DEFINE_string(images, "resources", "Directory of images to decode."); 28 29 DEFINE_bool2(leaks, l, false, "show leaked ref cnt'd objects."); 30 31 DEFINE_string2(match, m, NULL, 32 "[~][^]substring[$] [...] of GM name to run.\n" 33 "Multiple matches may be separated by spaces.\n" 34 "~ causes a matching GM to always be skipped\n" 35 "^ requires the start of the GM to match\n" 36 "$ requires the end of the GM to match\n" 37 "^ and $ requires an exact match\n" 38 "If a GM does not match any list entry,\n" 39 "it is skipped unless some list entry starts with ~"); 40 41 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); 42 43 DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running the test."); 44 45 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test."); 46 47 DEFINE_string(skps, "skps", "Directory to read skps from."); 48 49 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many extra threads, " 50 "defaulting to one extra thread per core."); 51 52 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); 53 54 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); 55 56 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); 57 58 DEFINE_string(key, "", 59 "Space-separated key/value pairs to add to JSON identifying this builder."); 60 DEFINE_string(properties, "", 61 "Space-separated key/value pairs to add to JSON identifying this run."); 62 63