| Index: dm/DM.cpp
|
| diff --git a/dm/DM.cpp b/dm/DM.cpp
|
| index 9d111eac30a0279d5237caf38fbc2170cf94809c..09f0ce8f268cd0b15e0cd16a3012fd4e19148741 100644
|
| --- a/dm/DM.cpp
|
| +++ b/dm/DM.cpp
|
| @@ -41,6 +41,7 @@
|
| static const char kGpuAPINameGL[] = "gl";
|
| static const char kGpuAPINameGLES[] = "gles";
|
|
|
| +DEFINE_int32(gpuThreads, 1, "Threads for GPU work.");
|
| DEFINE_string2(expectations, r, "",
|
| "If a directory, compare generated images against images under this path. "
|
| "If a file, compare generated images against JSON expectations at this path."
|
| @@ -232,7 +233,7 @@
|
| SkDebugf("%d GMs x %d configs, %d tests, %d pictures\n",
|
| gms.count(), configs.count(), tests.count(), skps.count());
|
| DM::Reporter reporter;
|
| - DM::TaskRunner tasks(FLAGS_threads);
|
| + DM::TaskRunner tasks(FLAGS_threads, FLAGS_gpuThreads);
|
| kick_off_tests(tests, &reporter, &tasks);
|
| kick_off_gms(gms, configs, gpuAPI, *expectations, &reporter, &tasks);
|
| kick_off_skps(skps, &reporter, &tasks);
|
|
|