blob: 6d9821d491b1aade1d7bd7f89be88aa554592b34 [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"
PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
for (int index = 0; index < fRunnables.count(); index++) {
SkDELETE(fRunnables[index]);
}
}
void PathOpsThreadedTestRunner::render() {
fCountdown.reset(fRunnables.count());
for (int index = 0; index < fRunnables.count(); ++ index) {
fThreadPool.add(fRunnables[index]);
}
fCountdown.wait();
#ifdef SK_DEBUG
gDebugMaxWindSum = SK_MaxS32;
gDebugMaxWindValue = SK_MaxS32;
#endif
}