Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / tools / flags / SkCommonFlags.cpp
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 #include "SkThreadPool.h"
10
11 DEFINE_string(config, "565 8888 pdf gpu nonrendering angle",
12               "Options: 565 8888 pdf gpu nonrendering msaa4 msaa16 nvprmsaa4 nvprmsaa16 "
13               "gpunull gpudebug angle mesa");
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_bool2(leaks, l, false, "show leaked ref cnt'd objects.");
28
29 DEFINE_string2(match, m, NULL,
30                "[~][^]substring[$] [...] of GM name to run.\n"
31                "Multiple matches may be separated by spaces.\n"
32                "~ causes a matching GM to always be skipped\n"
33                "^ requires the start of the GM to match\n"
34                "$ requires the end of the GM to match\n"
35                "^ and $ requires an exact match\n"
36                "If a GM does not match any list entry,\n"
37                "it is skipped unless some list entry starts with ~");
38
39 DEFINE_bool2(quiet, q, false, "if true, don't print status updates.");
40
41 DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test.");
42 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each test. "
43                                       "Implies --resetGpuContext.");
44
45 DEFINE_bool2(single, z, false, "run tests on a single thread internally.");
46
47 DEFINE_string(skps, "skps", "Directory to read skps from.");
48
49 DEFINE_int32(threads, SkThreadPool::kThreadPerCore,
50              "run threadsafe tests on a threadpool with this many threads.");
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.");