Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: tests/PathOpsThreadedCommon.cpp

Issue 14072002: Make parallel unit testing work on windows (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsThreadedCommon.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
OLDNEW
« no previous file with comments | « tests/PathOpsThreadedCommon.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698