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

Side by Side Diff: tests/PathOpsSimplifyTrianglesThreadedTest.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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 | « tests/PathOpsSimplifyRectThreadedTest.cpp ('k') | tests/PathOpsSkpClipTest.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 9
10 static void testSimplifyTrianglesMain(PathOpsThreadState* data) { 10 static void testSimplifyTrianglesMain(PathOpsThreadState* data) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int by = b >> 2; 83 int by = b >> 2;
84 for (int c = a + 1; c < 16; ++c) { 84 for (int c = a + 1; c < 16; ++c) {
85 if (b == c) { 85 if (b == c) {
86 continue; 86 continue;
87 } 87 }
88 int cx = c & 0x03; 88 int cx = c & 0x03;
89 int cy = c >> 2; 89 int cy = c >> 2;
90 if ((bx - ax) * (cy - ay) == (by - ay) * (cx - ax)) { 90 if ((bx - ax) * (cy - ay) == (by - ay) * (cx - ax)) {
91 continue; 91 continue;
92 } 92 }
93 *testRunner.fRunnables.append() = SkNEW_ARGS(PathOpsThreadedRunn able, 93 *testRunner.fRunnables.append() = new PathOpsThreadedRunnable(
94 (&testSimplifyTrianglesMain, a, b, c, 0, &testRunner)); 94 &testSimplifyTrianglesMain, a, b, c, 0, &testRunner);
95 } 95 }
96 if (!reporter->allowExtendedTest()) goto finish; 96 if (!reporter->allowExtendedTest()) goto finish;
97 } 97 }
98 } 98 }
99 finish: 99 finish:
100 testRunner.render(); 100 testRunner.render();
101 } 101 }
OLDNEW
« no previous file with comments | « tests/PathOpsSimplifyRectThreadedTest.cpp ('k') | tests/PathOpsSkpClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698