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

Side by Side Diff: tests/PathOpsSimplifyRectThreadedTest.cpp

Issue 1867053002: Appease valgrind wrt testing code initialization (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 4 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
« no previous file with comments | « src/pathops/SkPathOpsSimplify.cpp ('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
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 9
10 // four rects, of four sizes 10 // four rects, of four sizes
(...skipping 24 matching lines...) Expand all
35 for (int aYAlign = 0; aYAlign < 5; ++aYAlign) { 35 for (int aYAlign = 0; aYAlign < 5; ++aYAlign) {
36 for (int bXAlign = 0; bXAlign < 5; ++bXAlign) { 36 for (int bXAlign = 0; bXAlign < 5; ++bXAlign) {
37 for (int bYAlign = 0; bYAlign < 5; ++bYAlign) { 37 for (int bYAlign = 0; bYAlign < 5; ++bYAlign) {
38 for (int cXAlign = 0; cXAlign < 5; ++cXAlign) { 38 for (int cXAlign = 0; cXAlign < 5; ++cXAlign) {
39 for (int cYAlign = 0; cYAlign < 5; ++cYAlign) { 39 for (int cYAlign = 0; cYAlign < 5; ++cYAlign) {
40 for (int dXAlign = 0; dXAlign < 5; ++dXAlign) { 40 for (int dXAlign = 0; dXAlign < 5; ++dXAlign) {
41 for (int dYAlign = 0; dYAlign < 5; ++dYAlign) { 41 for (int dYAlign = 0; dYAlign < 5; ++dYAlign) {
42 SkPath path, out; 42 SkPath path, out;
43 char* str = pathStr; 43 char* str = pathStr;
44 path.setFillType(SkPath::kWinding_FillType); 44 path.setFillType(SkPath::kWinding_FillType);
45 int l, t, r, b; 45 int l SK_INIT_TO_AVOID_WARNING, t SK_INIT_TO_AVOID_WARNING,
46 r SK_INIT_TO_AVOID_WARNING, b SK_INIT_TO_AVOID_WARNING;
46 if (aShape) { 47 if (aShape) {
47 switch (aShape) { 48 switch (aShape) {
48 case 1: // square 49 case 1: // square
49 l = 0; r = 60; 50 l = 0; r = 60;
50 t = 0; b = 60; 51 t = 0; b = 60;
51 aXAlign = 5; 52 aXAlign = 5;
52 aYAlign = 5; 53 aYAlign = 5;
53 break; 54 break;
54 case 2: 55 case 2:
55 l = aXAlign * 12; 56 l = aXAlign * 12;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 *testRunner.fRunnables.append() = new PathOpsThreadedRunnabl e( 197 *testRunner.fRunnables.append() = new PathOpsThreadedRunnabl e(
197 &testSimplify4x4RectsMain, a, b, c, d, &testRunner); 198 &testSimplify4x4RectsMain, a, b, c, d, &testRunner);
198 } 199 }
199 if (!reporter->allowExtendedTest()) goto finish; 200 if (!reporter->allowExtendedTest()) goto finish;
200 } 201 }
201 } 202 }
202 } 203 }
203 finish: 204 finish:
204 testRunner.render(); 205 testRunner.render();
205 } 206 }
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsSimplify.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698