OLD | NEW |
---|---|
1 #include "PathOpsCubicIntersectionTestData.h" | 1 #include "PathOpsCubicIntersectionTestData.h" |
2 #include "PathOpsQuadIntersectionTestData.h" | 2 #include "PathOpsQuadIntersectionTestData.h" |
3 #include "SkCommonFlags.h" | 3 #include "SkCommonFlags.h" |
4 #include "SkPaint.h" | 4 #include "SkPaint.h" |
5 #include "SkPath.h" | 5 #include "SkPath.h" |
6 #include "SkRandom.h" | 6 #include "SkRandom.h" |
7 #include "SkStrokerPriv.h" | 7 #include "SkStrokerPriv.h" |
8 #include "SkTime.h" | 8 #include "SkTime.h" |
9 #include "Test.h" | 9 #include "Test.h" |
10 | 10 |
11 #ifndef SK_BUILD_FOR_IOS | |
tfarina
2014/10/09 13:21:54
if you use !definded, then it is easier for someon
| |
11 DEFINE_bool2(extendedTest, x, false, "run extended tests regardless of how long takes"); | 12 DEFINE_bool2(extendedTest, x, false, "run extended tests regardless of how long takes"); |
13 #endif | |
12 | 14 |
13 #define MS_TEST_DURATION 10 | 15 #define MS_TEST_DURATION 10 |
14 | 16 |
15 const SkScalar widths[] = {-FLT_MAX, -1, -0.1f, -FLT_EPSILON, 0, FLT_EPSILON, | 17 const SkScalar widths[] = {-FLT_MAX, -1, -0.1f, -FLT_EPSILON, 0, FLT_EPSILON, |
16 0.0000001f, 0.000001f, 0.00001f, 0.0001f, 0.001f, 0.01f, | 18 0.0000001f, 0.000001f, 0.00001f, 0.0001f, 0.001f, 0.01f, |
17 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 1, 1.1f, 2, 10, 10e2f, 10e3f, 10e4f, 10e5f , 10e6f, 10e7f, | 19 0.1f, 0.2f, 0.3f, 0.4f, 0.5f, 1, 1.1f, 2, 10, 10e2f, 10e3f, 10e4f, 10e5f , 10e6f, 10e7f, |
18 10e8f, 10e9f, 10e10f, 10e20f, FLT_MAX }; | 20 10e8f, 10e9f, 10e10f, 10e20f, FLT_MAX }; |
19 size_t widths_count = SK_ARRAY_COUNT(widths); | 21 size_t widths_count = SK_ARRAY_COUNT(widths); |
20 | 22 |
21 static void pathTest(const SkPath& path) { | 23 static void pathTest(const SkPath& path) { |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
443 path.dump(); | 445 path.dump(); |
444 SkDebugf("fill:\n"); | 446 SkDebugf("fill:\n"); |
445 fill.dump(); | 447 fill.dump(); |
446 } | 448 } |
447 #if defined(SK_DEBUG) && QUAD_STROKE_APPROXIMATION | 449 #if defined(SK_DEBUG) && QUAD_STROKE_APPROXIMATION |
448 if (FLAGS_verbose) { | 450 if (FLAGS_verbose) { |
449 SkDebugf("max tan=%d cubic=%d\n", gMaxRecursion[0], gMaxRecursion[1]); | 451 SkDebugf("max tan=%d cubic=%d\n", gMaxRecursion[0], gMaxRecursion[1]); |
450 } | 452 } |
451 #endif | 453 #endif |
452 } | 454 } |
OLD | NEW |