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

Side by Side Diff: tests/PathOpsSimplifyDegenerateThreadedTest.cpp

Issue 138563004: Move macros from TestClassDef.h to Test.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload Created 6 years, 11 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/PathOpsQuadReduceOrderTest.cpp ('k') | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "PathOpsExtendedTest.h" 7 #include "PathOpsExtendedTest.h"
8 #include "PathOpsThreadedCommon.h" 8 #include "PathOpsThreadedCommon.h"
9 #include "TestClassDef.h"
10 9
11 static void testSimplifyDegeneratesMain(PathOpsThreadState* data) { 10 static void testSimplifyDegeneratesMain(PathOpsThreadState* data) {
12 SkASSERT(data); 11 SkASSERT(data);
13 PathOpsThreadState& state = *data; 12 PathOpsThreadState& state = *data;
14 char pathStr[1024]; 13 char pathStr[1024];
15 bool progress = state.fReporter->verbose(); // FIXME: break out into its own parameter? 14 bool progress = state.fReporter->verbose(); // FIXME: break out into its own parameter?
16 if (progress) { 15 if (progress) {
17 sk_bzero(pathStr, sizeof(pathStr)); 16 sk_bzero(pathStr, sizeof(pathStr));
18 } 17 }
19 int ax = state.fA & 0x03; 18 int ax = state.fA & 0x03;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreadedRunn able, 83 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreadedRunn able,
85 (&testSimplifyDegeneratesMain, a, b, c, abcIsATriangle, 84 (&testSimplifyDegeneratesMain, a, b, c, abcIsATriangle,
86 &testRunner)); 85 &testRunner));
87 } 86 }
88 if (!reporter->allowExtendedTest()) goto finish; 87 if (!reporter->allowExtendedTest()) goto finish;
89 } 88 }
90 } 89 }
91 finish: 90 finish:
92 testRunner.render(); 91 testRunner.render();
93 } 92 }
OLDNEW
« no previous file with comments | « tests/PathOpsQuadReduceOrderTest.cpp ('k') | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698