diff options
Diffstat (limited to 'tests/PathOpsThreadedCommon.cpp')
-rw-r--r-- | tests/PathOpsThreadedCommon.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/PathOpsThreadedCommon.cpp b/tests/PathOpsThreadedCommon.cpp index 0adde915e0..10501d139c 100644 --- a/tests/PathOpsThreadedCommon.cpp +++ b/tests/PathOpsThreadedCommon.cpp @@ -16,8 +16,7 @@ PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() { } void PathOpsThreadedTestRunner::render() { - SkTaskGroup tg; - for (int index = 0; index < fRunnables.count(); ++ index) { - tg.add(fRunnables[index]); - } + sk_parallel_for(fRunnables.count(), [&](int i) { + fRunnables[i]->run(); + }); } |