blob: 44e86ab50d40da38b9b105dcf74c5a95b93a1195 [file] [log] [blame]
caryclark@google.com66089e42013-04-10 15:55:37 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "PathOpsExtendedTest.h"
9#include "PathOpsThreadedCommon.h"
10
11PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() {
12 for (int index = 0; index < fRunnables.count(); index++) {
13 SkDELETE(fRunnables[index]);
14 }
15}
16
17void PathOpsThreadedTestRunner::render() {
18 fCountdown.reset(fRunnables.count());
19 for (int index = 0; index < fRunnables.count(); ++ index) {
20 fThreadPool.add(fRunnables[index]);
21 }
22 fCountdown.wait();
23#ifdef SK_DEBUG
24 gDebugMaxWindSum = SK_MaxS32;
25 gDebugMaxWindValue = SK_MaxS32;
26#endif
27}
28
29