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)
103 skgpu::ContextType::kDawn,
118 if (filter && !(*filter)(ctxType)) {
166#if defined(SK_GANESH)
171 grCtxOptions.fFailFlushTimeCallbacks =
false;
172 grCtxOptions.fAllPathsVolatile =
false;
175 grCtxOptions.fResourceCacheLimitOverride = -1;
int main(int argc, char **argv)
TestHarness CurrentTestHarness()
void maybeRunTest(const char *name, std::function< void()> testFn)
static DEFINE_string(skip, "", "Space-separated list of test cases (regexps) to skip.")
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
Dart_NativeFunction function
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)
DEF_SWITCHES_START aot vmservice shared library name
GrBackendApi ContextTypeBackend(skgpu::ContextType type)
@ kVulkan
ANGLE on Metal ES 3 context.
@ kMock
Dawn on OpenGL ES.
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