blob: 9b5240cc2d5bae59d150c97047e320f1ea64a272 [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() {
caryclark@google.com9515f092013-04-18 19:50:01 +000018 SkThreadPool pool(fNumThreads);
caryclark@google.com66089e42013-04-10 15:55:37 +000019 for (int index = 0; index < fRunnables.count(); ++ index) {
caryclark@google.com9515f092013-04-18 19:50:01 +000020 pool.add(fRunnables[index]);
caryclark@google.com66089e42013-04-10 15:55:37 +000021 }
caryclark@google.com66089e42013-04-10 15:55:37 +000022#ifdef SK_DEBUG
23 gDebugMaxWindSum = SK_MaxS32;
24 gDebugMaxWindValue = SK_MaxS32;
25#endif
26}