| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkOpSegment.h" | 8 #include "SkOpSegment.h" |
| 9 #include "SkTArray.h" | 9 #include "SkTArray.h" |
| 10 #include "Test.h" | 10 #include "Test.h" |
| 11 #include "TestClassDef.h" | |
| 12 | 11 |
| 13 static const SkPoint cubics[][4] = { | 12 static const SkPoint cubics[][4] = { |
| 14 /* 0 */ {{0, 1}, {2, 6}, {4, 2}, {5, 3}}, | 13 /* 0 */ {{0, 1}, {2, 6}, {4, 2}, {5, 3}}, |
| 15 /* 1 */ {{10, 234}, {10, 229.581726f}, {13.5817204f, 226}, {18, 226}}, | 14 /* 1 */ {{10, 234}, {10, 229.581726f}, {13.5817204f, 226}, {18, 226}}, |
| 16 /* 2 */ {{132, 11419}, {130.89543151855469f, 11419}, {130, 11418.1044921875f}
, {130, 11417}}, | 15 /* 2 */ {{132, 11419}, {130.89543151855469f, 11419}, {130, 11418.1044921875f}
, {130, 11417}}, |
| 17 /* 3 */ {{130.04275512695312f, 11417.4130859375f}, {130.23307800292969f, 1141
8.3193359375f}, | 16 /* 3 */ {{130.04275512695312f, 11417.4130859375f}, {130.23307800292969f, 1141
8.3193359375f}, |
| 18 {131.03709411621094f, 11419}, {132, 11419}}, | 17 {131.03709411621094f, 11419}, {132, 11419}}, |
| 19 /* 4 */ {{0,1}, {0,5}, {4,1}, {6,4}}, | 18 /* 4 */ {{0,1}, {0,5}, {4,1}, {6,4}}, |
| 20 /* 5 */ {{1,5}, {4,6}, {1,0}, {4,0}}, | 19 /* 5 */ {{1,5}, {4,6}, {1,0}, {4,0}}, |
| 21 /* 6 */ {{0,1}, {0,4}, {5,1}, {6,4}}, | 20 /* 6 */ {{0,1}, {0,4}, {5,1}, {6,4}}, |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 SkDebugf("%s rxy %d=%d\n", __FUNCTION__, (int) index, find_slop(rx, ry,
x, y)); | 462 SkDebugf("%s rxy %d=%d\n", __FUNCTION__, (int) index, find_slop(rx, ry,
x, y)); |
| 464 double angle = diamond_angle(y, x); | 463 double angle = diamond_angle(y, x); |
| 465 double rAngle = diamond_angle(ry, rx); | 464 double rAngle = diamond_angle(ry, rx); |
| 466 double diff = fabs(angle - rAngle); | 465 double diff = fabs(angle - rAngle); |
| 467 SkDebugf("%s diamond xy=%1.9g rxy=%1.9g diff=%1.9g factor=%d\n", __FUNCT
ION__, | 466 SkDebugf("%s diamond xy=%1.9g rxy=%1.9g diff=%1.9g factor=%d\n", __FUNCT
ION__, |
| 468 angle, rAngle, diff, (int) (diff / FLT_EPSILON)); | 467 angle, rAngle, diff, (int) (diff / FLT_EPSILON)); |
| 469 | 468 |
| 470 } | 469 } |
| 471 }*/ | 470 }*/ |
| 472 #endif | 471 #endif |
| OLD | NEW |