| Index: tests/PathOpsSkpClipTest.cpp
|
| diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp
|
| index da505451da2dd61166ed13372872e03c8d220779..61883bdfdef429e6f0360d3e21b353159ba1e7d7 100755
|
| --- a/tests/PathOpsSkpClipTest.cpp
|
| +++ b/tests/PathOpsSkpClipTest.cpp
|
| @@ -16,7 +16,7 @@
|
| #include "SkString.h"
|
| #include "SkTArray.h"
|
| #include "SkTDArray.h"
|
| -#include "SkThreadPool.h"
|
| +#include "ThreadPool.h"
|
| #include "SkTime.h"
|
| #include "Test.h"
|
|
|
| @@ -332,7 +332,7 @@ struct TestRunner {
|
| skiatest::Reporter* fReporter;
|
| };
|
|
|
| -class TestRunnable : public SkRunnable {
|
| +class TestRunnable : public Runnable {
|
| public:
|
| virtual void run() SK_OVERRIDE {
|
| SkGraphics::SetTLSFontCacheLimit(1 * 1024 * 1024);
|
| @@ -377,7 +377,7 @@ TestRunner::~TestRunner() {
|
| }
|
|
|
| void TestRunner::render() {
|
| - SkThreadPool pool(fNumThreads);
|
| + ThreadPool pool(fNumThreads);
|
| for (int index = 0; index < fRunnables.count(); ++ index) {
|
| pool.add(fRunnables[index]);
|
| }
|
| @@ -874,7 +874,7 @@ static void encodeFound(skiatest::Reporter* reporter, TestState& state) {
|
| }
|
| }
|
|
|
| - int threadCount = reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1;
|
| + int threadCount = reporter->allowThreaded() ? ThreadPool::kThreadPerCore : 1;
|
| TestRunner testRunner(reporter, threadCount);
|
| for (int index = 0; index < state.fPixelWorst.count(); ++index) {
|
| const TestResult& result = state.fPixelWorst[index];
|
| @@ -926,7 +926,7 @@ DEF_TEST(PathOpsSkpClipThreaded, reporter) {
|
| if (!initTest()) {
|
| return;
|
| }
|
| - int threadCount = reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1;
|
| + int threadCount = reporter->allowThreaded() ? ThreadPool::kThreadPerCore : 1;
|
| TestRunner testRunner(reporter, threadCount);
|
| const int firstDirNo = 1;
|
| for (int dirNo = firstDirNo; dirNo <= 100; ++dirNo) {
|
| @@ -1039,7 +1039,7 @@ DEF_TEST(PathOpsSkpClipUberThreaded, reporter) {
|
| if (!buildTests(reporter, firstDirNo, lastDirNo, tests, sorted)) {
|
| return;
|
| }
|
| - int threadCount = reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1;
|
| + int threadCount = reporter->allowThreaded() ? ThreadPool::kThreadPerCore : 1;
|
| TestRunner testRunner(reporter, threadCount);
|
| for (int dirNo = firstDirNo; dirNo <= lastDirNo; ++dirNo) {
|
| SkString dirName = make_in_dir_name(dirNo);
|
|
|