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 "SkAAClip.h" | 8 #include "SkAAClip.h" |
10 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
11 #include "SkMask.h" | 10 #include "SkMask.h" |
12 #include "SkPath.h" | 11 #include "SkPath.h" |
13 #include "SkRandom.h" | 12 #include "SkRandom.h" |
| 13 #include "Test.h" |
14 | 14 |
15 static bool operator==(const SkMask& a, const SkMask& b) { | 15 static bool operator==(const SkMask& a, const SkMask& b) { |
16 if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) { | 16 if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) { |
17 return false; | 17 return false; |
18 } | 18 } |
19 if (!a.fImage && !b.fImage) { | 19 if (!a.fImage && !b.fImage) { |
20 return true; | 20 return true; |
21 } | 21 } |
22 if (!a.fImage || !b.fImage) { | 22 if (!a.fImage || !b.fImage) { |
23 return false; | 23 return false; |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 396 |
397 DEF_TEST(AAClip, reporter) { | 397 DEF_TEST(AAClip, reporter) { |
398 test_empty(reporter); | 398 test_empty(reporter); |
399 test_path_bounds(reporter); | 399 test_path_bounds(reporter); |
400 test_irect(reporter); | 400 test_irect(reporter); |
401 test_rgn(reporter); | 401 test_rgn(reporter); |
402 test_path_with_hole(reporter); | 402 test_path_with_hole(reporter); |
403 test_regressions(); | 403 test_regressions(); |
404 test_nearly_integral(reporter); | 404 test_nearly_integral(reporter); |
405 } | 405 } |
OLD | NEW |