2013-04-10 15:55:37 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "src/core/SkTaskGroup.h"
|
|
|
|
#include "tests/PathOpsExtendedTest.h"
|
|
|
|
#include "tests/PathOpsThreadedCommon.h"
|
2013-04-10 15:55:37 +00:00
|
|
|
|
|
|
|
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
|
|
|
|
for (int index = 0; index < fRunnables.count(); index++) {
|
2015-08-26 20:07:48 +00:00
|
|
|
delete fRunnables[index];
|
2013-04-10 15:55:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void PathOpsThreadedTestRunner::render() {
|
2016-01-05 03:13:19 +00:00
|
|
|
SkTaskGroup().batch(fRunnables.count(), [&](int i) {
|
2016-02-17 03:06:15 +00:00
|
|
|
(*fRunnables[i])();
|
2015-06-17 22:26:15 +00:00
|
|
|
});
|
2013-04-10 15:55:37 +00:00
|
|
|
}
|