Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index ac37aeb09fd06a9b98a80d673ab4a5abf73b0b22..ace49076ac74427c58486d13e43ea4acf59aeed1 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -1093,12 +1093,13 @@ int dm_main() { |
} |
SkTaskGroup tg; |
- tg.batch([](int i){ run_test(&gThreadedTests[i]); }, gThreadedTests.count()); |
+ tg.batch(gThreadedTests.count(), [](int i){ run_test(&gThreadedTests[i]); }); |
for (int i = 0; i < kNumEnclaves; i++) { |
SkTArray<Task>* currentEnclave = &enclaves[i]; |
switch(i) { |
case kAnyThread_Enclave: |
- tg.batch([currentEnclave](int j) { Task::Run(&(*currentEnclave)[j]); }, currentEnclave->count()); |
+ tg.batch(currentEnclave->count(), |
+ [currentEnclave](int j) { Task::Run(&(*currentEnclave)[j]); }); |
break; |
case kGPU_Enclave: |
tg.add([currentEnclave](){ run_enclave_and_gpu_tests(currentEnclave); }); |