blob: a66ec710c7440c043481d6b0be3c2f6468d7efae [file] [log] [blame]
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "PathOpsExtendedTest.h"
#include "PathOpsThreadedCommon.h"
#include "SkThreadPool.h"
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
for (int index = 0; index < fRunnables.count(); index++) {
SkDELETE(fRunnables[index]);
}
}
void PathOpsThreadedTestRunner::render() {
SkThreadPool pool(fNumThreads);
for (int index = 0; index < fRunnables.count(); ++ index) {
pool.add(fRunnables[index]);
}
#ifdef SK_DEBUG
SkPathOpsDebug::gMaxWindSum = SK_MaxS32;
SkPathOpsDebug::gMaxWindValue = SK_MaxS32;
#endif
}