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 "SkFloatingPoint.h" | 8 #include "SkFloatingPoint.h" |
10 #include "SkMath.h" | 9 #include "SkMath.h" |
11 #include "SkPoint.h" | 10 #include "SkPoint.h" |
12 #include "SkRandom.h" | 11 #include "SkRandom.h" |
13 #include "SkRect.h" | 12 #include "SkRect.h" |
| 13 #include "Test.h" |
14 | 14 |
15 struct PointSet { | 15 struct PointSet { |
16 const SkPoint* fPts; | 16 const SkPoint* fPts; |
17 size_t fCount; | 17 size_t fCount; |
18 bool fIsFinite; | 18 bool fIsFinite; |
19 }; | 19 }; |
20 | 20 |
21 static void test_isRectFinite(skiatest::Reporter* reporter) { | 21 static void test_isRectFinite(skiatest::Reporter* reporter) { |
22 static const SkPoint gF0[] = { | 22 static const SkPoint gF0[] = { |
23 { 0, 0 }, { 1, 1 } | 23 { 0, 0 }, { 1, 1 } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 test_isRectFinite(reporter); | 181 test_isRectFinite(reporter); |
182 } | 182 } |
183 | 183 |
184 #if defined _WIN32 | 184 #if defined _WIN32 |
185 #pragma warning ( pop ) | 185 #pragma warning ( pop ) |
186 #endif | 186 #endif |
187 | 187 |
188 DEF_TEST(Scalar, reporter) { | 188 DEF_TEST(Scalar, reporter) { |
189 test_isfinite(reporter); | 189 test_isfinite(reporter); |
190 } | 190 } |
OLD | NEW |