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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "PathOpsExtendedTest.h"
|
|
|
|
#include "PathOpsThreadedCommon.h"
|
2013-05-07 18:51:31 +00:00
|
|
|
#include "SkThreadPool.h"
|
2013-04-10 15:55:37 +00:00
|
|
|
|
|
|
|
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
|
|
|
|
for (int index = 0; index < fRunnables.count(); index++) {
|
|
|
|
SkDELETE(fRunnables[index]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void PathOpsThreadedTestRunner::render() {
|
2013-04-18 19:50:01 +00:00
|
|
|
SkThreadPool pool(fNumThreads);
|
2013-04-10 15:55:37 +00:00
|
|
|
for (int index = 0; index < fRunnables.count(); ++ index) {
|
2013-04-18 19:50:01 +00:00
|
|
|
pool.add(fRunnables[index]);
|
2013-04-10 15:55:37 +00:00
|
|
|
}
|
|
|
|
#ifdef SK_DEBUG
|
2013-09-16 15:55:01 +00:00
|
|
|
SkPathOpsDebug::gMaxWindSum = SK_MaxS32;
|
|
|
|
SkPathOpsDebug::gMaxWindValue = SK_MaxS32;
|
2013-04-10 15:55:37 +00:00
|
|
|
#endif
|
|
|
|
}
|