| 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 30 matching lines...) Expand all Loading... |
| 41 DEFINE_bool(preAbandonGpuContext, false, "Test abandoning the GrContext before r
unning the test."); | 41 DEFINE_bool(preAbandonGpuContext, false, "Test abandoning the GrContext before r
unning the test."); |
| 42 | 42 |
| 43 DEFINE_bool(abandonGpuContext, false, "Test abandoning the GrContext after runni
ng each test."); | 43 DEFINE_bool(abandonGpuContext, false, "Test abandoning the GrContext after runni
ng each test."); |
| 44 | 44 |
| 45 DEFINE_bool(releaseAndAbandonGpuContext, false, | 45 DEFINE_bool(releaseAndAbandonGpuContext, false, |
| 46 "Test releasing all gpu resources and abandoning the GrContext after
running each " | 46 "Test releasing all gpu resources and abandoning the GrContext after
running each " |
| 47 "test"); | 47 "test"); |
| 48 | 48 |
| 49 DEFINE_string(skps, "skps", "Directory to read skps from."); | 49 DEFINE_string(skps, "skps", "Directory to read skps from."); |
| 50 | 50 |
| 51 DEFINE_string(svgs, "", "Directory to read SVGs from, or a single SVG file."); |
| 52 |
| 51 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e
xtra threads, " | 53 DEFINE_int32(threads, -1, "Run threadsafe tests on a threadpool with this many e
xtra threads, " |
| 52 "defaulting to one extra thread per core."); | 54 "defaulting to one extra thread per core."); |
| 53 | 55 |
| 54 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); | 56 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
| 55 | 57 |
| 56 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); | 58 DEFINE_bool2(veryVerbose, V, false, "tell individual tests to be verbose."); |
| 57 | 59 |
| 58 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); | 60 DEFINE_string2(writePath, w, "", "If set, write bitmaps here as .pngs."); |
| 59 | 61 |
| 60 DEFINE_string(key, "", | 62 DEFINE_string(key, "", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 SkDebugf("No supported images found in %s!\n", flag); | 99 SkDebugf("No supported images found in %s!\n", flag); |
| 98 return false; | 100 return false; |
| 99 } | 101 } |
| 100 } else { | 102 } else { |
| 101 // Also add the value if it is a single image | 103 // Also add the value if it is a single image |
| 102 output->push_back() = flag; | 104 output->push_back() = flag; |
| 103 } | 105 } |
| 104 } | 106 } |
| 105 return true; | 107 return true; |
| 106 } | 108 } |
| OLD | NEW |