1/* 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#include "SkThreadPool.h" 11 12PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() { 13 for (int index = 0; index < fRunnables.count(); index++) { 14 SkDELETE(fRunnables[index]); 15 } 16} 17 18void PathOpsThreadedTestRunner::render() { 19 SkThreadPool pool(fNumThreads); 20 for (int index = 0; index < fRunnables.count(); ++ index) { 21 pool.add(fRunnables[index]); 22 } 23#ifdef SK_DEBUG 24 SkPathOpsDebug::gMaxWindSum = SK_MaxS32; 25 SkPathOpsDebug::gMaxWindValue = SK_MaxS32; 26#endif 27} 28