42 "Space-separated list of test cases (regexps) to run. Will run all tests if omitted.");
56 "Ignored by this test runner.",
66 bool verbose()
const override {
return false; }
67 bool ok() {
return !fFailed; }
93#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_MAC)
94 skgpu::ContextType::kGL,
96 skgpu::ContextType::kGLES,
100 skgpu::ContextType::kVulkan,
103 skgpu::ContextType::kDawn,
106 skgpu::ContextType::kMock,
118 if (filter && !(*filter)(ctxType)) {
154int main(
int argc,
char** argv) {
166#if defined(SK_GANESH)
171 grCtxOptions.fFailFlushTimeCallbacks =
false;
172 grCtxOptions.fAllPathsVolatile =
false;
175 grCtxOptions.fResourceCacheLimitOverride = -1;
TestHarness CurrentTestHarness()
void maybeRunTest(const char *name, std::function< void()> testFn)
#define DEFINE_string(name, defaultValue, helpString)
static bool match(const char *needle, const char *haystack)
static bool skip(SkStream *stream, size_t amount)
bool verbose() const override
void reportFailed(const skiatest::Failure &failure) override
bool allowExtendedTest() const override
static void Parse(int argc, const char *const *argv)
void flushAndSubmit(GrSyncCpu sync=GrSyncCpu::kNo)
static bool CreateStringFlag(const char *name, const char *shortName, CommandLineFlags::StringArray *pStrings, const char *defaultValue, const char *helpString, const char *extendedHelpString)
const char * c_str() const
GrDirectContext * directContext() const
TestContext * testContext() const
bool ShouldRunTestCase(const char *name, CommandLineFlags::StringArray &matchFlag, CommandLineFlags::StringArray &skipFlag)
void Log(const char *format,...) SK_PRINTF_LIKE(1
void InitAndLogCmdlineArgs(int argc, char **argv)
GrBackendApi ContextTypeBackend(skgpu::ContextType type)
void RunWithGaneshTestContexts(GrContextTestFn *testFn, ContextTypeFilterFn *filter, Reporter *reporter, const GrContextOptions &options)
bool IsMetalContextType(skgpu::ContextType type)
bool IsGLContextType(skgpu::ContextType type)
bool ContextTypeFilterFn(GpuContextType)
bool IsMockContextType(skgpu::ContextType type)
bool IsDirect3DContextType(skgpu::ContextType type)
void GrContextTestFn(Reporter *, const sk_gpu_test::ContextInfo &)
bool IsVulkanContextType(skgpu::ContextType type)
Enable fReduceOpsTaskSplitting
bool fDisableDriverCorrectnessWorkarounds
bool fAllowPathMaskCaching
SkString toString() const