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

Side by Side Diff: tests/PathOpsOpTest.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « tests/PathOpsConicLineIntersectionTest.cpp ('k') | tests/PathOpsTSectDebug.h » ('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 "PathOpsTestCommon.h" 8 #include "PathOpsTestCommon.h"
9 9
10 class PathTest_Private { 10 class PathTest_Private {
(...skipping 3828 matching lines...) Expand 10 before | Expand all | Expand 10 after
3839 pathB.cubicTo(1,2, 6,5, 6,4); 3839 pathB.cubicTo(1,2, 6,5, 6,4);
3840 pathB.close(); 3840 pathB.close();
3841 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename); 3841 testPathOp(reporter, path, pathB, kDifference_SkPathOp, filename);
3842 } 3842 }
3843 3843
3844 #include "SkGeometry.h" 3844 #include "SkGeometry.h"
3845 3845
3846 static void complex_to_quads(const SkPoint pts[], SkPath* path) { 3846 static void complex_to_quads(const SkPoint pts[], SkPath* path) {
3847 SkScalar loopT; 3847 SkScalar loopT;
3848 if (SkDCubic::ComplexBreak(pts, &loopT)) { 3848 if (SkDCubic::ComplexBreak(pts, &loopT)) {
3849 SkPoint cubicPair[7]; 3849 SkPoint cubicPair[7];
3850 SkChopCubicAt(pts, cubicPair, loopT); 3850 SkChopCubicAt(pts, cubicPair, loopT);
3851 SkDCubic c1, c2; 3851 SkDCubic c1, c2;
3852 c1.set(cubicPair); 3852 c1.set(cubicPair);
3853 c2.set(&cubicPair[3]); 3853 c2.set(&cubicPair[3]);
3854 SkDQuad q1 = c1.toQuad(); 3854 SkDQuad q1 = c1.toQuad();
3855 SkDQuad q2 = c2.toQuad(); 3855 SkDQuad q2 = c2.toQuad();
3856 path->quadTo(q1[1].asSkPoint(), q1[2].asSkPoint()); 3856 path->quadTo(q1[1].asSkPoint(), q1[2].asSkPoint());
3857 path->quadTo(q2[1].asSkPoint(), q2[2].asSkPoint()); 3857 path->quadTo(q2[1].asSkPoint(), q2[2].asSkPoint());
3858 } else { 3858 } else {
3859 path->cubicTo(pts[1], pts[2], pts[3]); 3859 path->cubicTo(pts[1], pts[2], pts[3]);
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after
5805 }; 5805 };
5806 5806
5807 static const size_t failTestCount = SK_ARRAY_COUNT(failTests); 5807 static const size_t failTestCount = SK_ARRAY_COUNT(failTests);
5808 5808
5809 DEF_TEST(PathOpsFailOp, reporter) { 5809 DEF_TEST(PathOpsFailOp, reporter) {
5810 #if DEBUG_SHOW_TEST_NAME 5810 #if DEBUG_SHOW_TEST_NAME
5811 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH); 5811 strncpy(DEBUG_FILENAME_STRING, "", DEBUG_FILENAME_STRING_LENGTH);
5812 #endif 5812 #endif
5813 RunTestSet(reporter, failTests, failTestCount, nullptr, nullptr, nullptr, fa lse); 5813 RunTestSet(reporter, failTests, failTestCount, nullptr, nullptr, nullptr, fa lse);
5814 } 5814 }
OLDNEW
« no previous file with comments | « tests/PathOpsConicLineIntersectionTest.cpp ('k') | tests/PathOpsTSectDebug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698