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

Side by Side Diff: tests/PathOpsCubicLineIntersectionTest.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/PathOpsCubicIntersectionTest.cpp ('k') | tests/PathOpsCubicQuadIntersectionTest.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 "PathOpsTestCommon.h" 7 #include "PathOpsTestCommon.h"
8 #include "SkIntersections.h" 8 #include "SkIntersections.h"
9 #include "SkPathOpsCubic.h" 9 #include "SkPathOpsCubic.h"
10 #include "SkPathOpsLine.h" 10 #include "SkPathOpsLine.h"
11 #include "SkReduceOrder.h" 11 #include "SkReduceOrder.h"
12 #include "Test.h" 12 #include "Test.h"
13 #include "TestClassDef.h"
14 13
15 static struct lineCubic { 14 static struct lineCubic {
16 SkDCubic cubic; 15 SkDCubic cubic;
17 SkDLine line; 16 SkDLine line;
18 } lineCubicTests[] = { 17 } lineCubicTests[] = {
19 {{{{154,715}, {151.238571,715}, {149,712.761414}, {149,710}}}, 18 {{{{154,715}, {151.238571,715}, {149,712.761414}, {149,710}}},
20 {{{149,675}, {149,710.001465}}}}, 19 {{{149,675}, {149,710.001465}}}},
21 20
22 {{{{0,1}, {1,6}, {4,1}, {4,3}}}, 21 {{{{0,1}, {1,6}, {4,1}, {4,3}}},
23 {{{6,1}, {1,4}}}}, 22 {{{6,1}, {1,4}}}},
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", prev.fX, prev.fY, sect.fX, sec t.fY); 101 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", prev.fX, prev.fY, sect.fX, sec t.fY);
103 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", sect.fX, sect.fY, cubic[3].fX, cubic[3].fY); 102 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", sect.fX, sect.fY, cubic[3].fX, cubic[3].fY);
104 SkDPoint prevL = line.ptAtT(i[1][0] - 0.0000007); 103 SkDPoint prevL = line.ptAtT(i[1][0] - 0.0000007);
105 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", prevL.fX, prevL.fY, i.pt(0).fX , i.pt(0).fY); 104 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", prevL.fX, prevL.fY, i.pt(0).fX , i.pt(0).fY);
106 SkDPoint nextL = line.ptAtT(i[1][0] + 0.0000007); 105 SkDPoint nextL = line.ptAtT(i[1][0] + 0.0000007);
107 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", i.pt(0).fX, i.pt(0).fY, nextL. fX, nextL.fY); 106 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", i.pt(0).fX, i.pt(0).fY, nextL. fX, nextL.fY);
108 SkDebugf("prevD=%1.9g dist=%1.9g nextD=%1.9g\n", prev.distance(nextL), 107 SkDebugf("prevD=%1.9g dist=%1.9g nextD=%1.9g\n", prev.distance(nextL),
109 sect.distance(i.pt(0)), cubic[3].distance(prevL)); 108 sect.distance(i.pt(0)), cubic[3].distance(prevL));
110 #endif 109 #endif
111 } 110 }
OLDNEW
« no previous file with comments | « tests/PathOpsCubicIntersectionTest.cpp ('k') | tests/PathOpsCubicQuadIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698