OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 7 |
8 #include "Test.h" | |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 #include "SkPaint.h" | 9 #include "SkPaint.h" |
11 #include "SkPath.h" | |
12 #include "SkParse.h" | 10 #include "SkParse.h" |
13 #include "SkParsePath.h" | 11 #include "SkParsePath.h" |
| 12 #include "SkPath.h" |
14 #include "SkPathEffect.h" | 13 #include "SkPathEffect.h" |
| 14 #include "SkRRect.h" |
15 #include "SkRandom.h" | 15 #include "SkRandom.h" |
16 #include "SkReader32.h" | 16 #include "SkReader32.h" |
17 #include "SkRRect.h" | |
18 #include "SkSize.h" | 17 #include "SkSize.h" |
19 #include "SkSurface.h" | 18 #include "SkSurface.h" |
20 #include "SkTypes.h" | 19 #include "SkTypes.h" |
21 #include "SkWriter32.h" | 20 #include "SkWriter32.h" |
| 21 #include "Test.h" |
22 | 22 |
23 static void make_path0(SkPath* path) { | 23 static void make_path0(SkPath* path) { |
24 // from * https://code.google.com/p/skia/issues/detail?id=1706 | 24 // from * https://code.google.com/p/skia/issues/detail?id=1706 |
25 | 25 |
26 path->moveTo(146.939f, 1012.84f); | 26 path->moveTo(146.939f, 1012.84f); |
27 path->lineTo(181.747f, 1009.18f); | 27 path->lineTo(181.747f, 1009.18f); |
28 path->lineTo(182.165f, 1013.16f); | 28 path->lineTo(182.165f, 1013.16f); |
29 path->lineTo(147.357f, 1016.82f); | 29 path->lineTo(147.357f, 1016.82f); |
30 path->lineTo(146.939f, 1012.84f); | 30 path->lineTo(146.939f, 1012.84f); |
31 path->close(); | 31 path->close(); |
(...skipping 3331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 test_rrect(reporter); | 3363 test_rrect(reporter); |
3364 test_arc(reporter); | 3364 test_arc(reporter); |
3365 test_arcTo(reporter); | 3365 test_arcTo(reporter); |
3366 test_addPath(reporter); | 3366 test_addPath(reporter); |
3367 test_conicTo_special_case(reporter); | 3367 test_conicTo_special_case(reporter); |
3368 test_get_point(reporter); | 3368 test_get_point(reporter); |
3369 test_contains(reporter); | 3369 test_contains(reporter); |
3370 PathTest_Private::TestPathTo(reporter); | 3370 PathTest_Private::TestPathTo(reporter); |
3371 PathRefTest_Private::TestPathRef(reporter); | 3371 PathRefTest_Private::TestPathRef(reporter); |
3372 } | 3372 } |
OLD | NEW |