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"
|
|
|
|
|
|
|
|
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
|
|
|
|
gDebugMaxWindSum = SK_MaxS32;
|
|
|
|
gDebugMaxWindValue = SK_MaxS32;
|
|
|
|
#endif
|
|
|
|
}
|