| Index: tests/PathOpsSkpClipTest.cpp
|
| diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp
|
| index 1f69ff05e1832563be36ac69ca507d653c98e3b5..7ea3184442286c1c2d158662ad1e6a94cc068b63 100755
|
| --- a/tests/PathOpsSkpClipTest.cpp
|
| +++ b/tests/PathOpsSkpClipTest.cpp
|
| @@ -303,10 +303,11 @@ TestRunner::~TestRunner() {
|
| }
|
|
|
| void TestRunner::render() {
|
| - SkTaskGroup tg;
|
| - for (int index = 0; index < fRunnables.count(); ++ index) {
|
| - tg.add(fRunnables[index]);
|
| - }
|
| + // TODO: this doesn't really need to use SkRunnables any more.
|
| + // We can just write the code to run in the for-loop directly.
|
| + sk_parallel_for(fRunnables.count(), [&](int i) {
|
| + fRunnables[i]->run();
|
| + });
|
| }
|
|
|
| ////////////////////////////////////////////////
|
|
|