caryclark@google.com | 66089e4 | 2013-04-10 15:55:37 +0000 | [diff] [blame^] | 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 | |
| 11 | PathOpsThreadedTestRunner::~PathOpsThreadedTestRunner() { |
| 12 | for (int index = 0; index < fRunnables.count(); index++) { |
| 13 | SkDELETE(fRunnables[index]); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | void 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 | |