OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "SkCommonFlags.h" | 8 #include "SkCommonFlags.h" |
9 #include "SkOSFile.h" | 9 #include "SkOSFile.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 "Multiple matches may be separated by spaces.\n" | 23 "Multiple matches may be separated by spaces.\n" |
24 "~ causes a matching GM to always be skipped\n" | 24 "~ causes a matching GM to always be skipped\n" |
25 "^ requires the start of the GM to match\n" | 25 "^ requires the start of the GM to match\n" |
26 "$ requires the end of the GM to match\n" | 26 "$ requires the end of the GM to match\n" |
27 "^ and $ requires an exact match\n" | 27 "^ and $ requires an exact match\n" |
28 "If a GM does not match any list entry,\n" | 28 "If a GM does not match any list entry,\n" |
29 "it is skipped unless some list entry starts with ~"); | 29 "it is skipped unless some list entry starts with ~"); |
30 | 30 |
31 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); | 31 DEFINE_bool2(quiet, q, false, "if true, don't print status updates."); |
32 | 32 |
33 DEFINE_bool(preAbandonGpuContext, false, "Abandons the GrContext before running
the test."); | 33 DEFINE_bool(preAbandonGpuContext, false, "Test abandoning the GrContext before r
unning the test."); |
34 | 34 |
35 DEFINE_bool(abandonGpuContext, false, "Abandon the GrContext after running each
test."); | 35 DEFINE_bool(abandonGpuContext, false, "Test abandoning the GrContext after runni
ng each test."); |
| 36 |
| 37 DEFINE_bool(releaseAndAbandonGpuContext, false, |
| 38 "Test releasing all gpu resources and abandoning the GrContext after
running each " |
| 39 "test"); |
36 | 40 |
37 DEFINE_string(skps, "skps", "Directory to read skps from."); | 41 DEFINE_string(skps, "skps", "Directory to read skps from."); |
38 | 42 |
39 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e
xtra threads, " | 43 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e
xtra threads, " |
40 "defaulting to one extra thread per core."); | 44 "defaulting to one extra thread per core."); |
41 | 45 |
42 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); | 46 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
43 | 47 |
44 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); | 48 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |
45 | 49 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 SkDebugf("No supported images found in %s!\n", flag); | 89 SkDebugf("No supported images found in %s!\n", flag); |
86 return false; | 90 return false; |
87 } | 91 } |
88 } else { | 92 } else { |
89 // Also add the value if it is a single image | 93 // Also add the value if it is a single image |
90 output->push_back() = flag; | 94 output->push_back() = flag; |
91 } | 95 } |
92 } | 96 } |
93 return true; | 97 return true; |
94 } | 98 } |
OLD | NEW |