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 "SkAAClip.h" | 8 #include "SkAAClip.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkMask.h" | 10 #include "SkMask.h" |
11 #include "SkPath.h" | 11 #include "SkPath.h" |
12 #include "SkRandom.h" | 12 #include "SkRandom.h" |
13 #include "SkRRect.h" | |
14 #include "Test.h" | 13 #include "Test.h" |
15 | 14 |
16 static bool operator==(const SkMask& a, const SkMask& b) { | 15 static bool operator==(const SkMask& a, const SkMask& b) { |
17 if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) { | 16 if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) { |
18 return false; | 17 return false; |
19 } | 18 } |
20 if (!a.fImage && !b.fImage) { | 19 if (!a.fImage && !b.fImage) { |
21 return true; | 20 return true; |
22 } | 21 } |
23 if (!a.fImage || !b.fImage) { | 22 if (!a.fImage || !b.fImage) { |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 test_empty(reporter); | 438 test_empty(reporter); |
440 test_path_bounds(reporter); | 439 test_path_bounds(reporter); |
441 test_irect(reporter); | 440 test_irect(reporter); |
442 test_rgn(reporter); | 441 test_rgn(reporter); |
443 test_path_with_hole(reporter); | 442 test_path_with_hole(reporter); |
444 test_regressions(); | 443 test_regressions(); |
445 test_nearly_integral(reporter); | 444 test_nearly_integral(reporter); |
446 test_really_a_rect(reporter); | 445 test_really_a_rect(reporter); |
447 test_crbug_422693(reporter); | 446 test_crbug_422693(reporter); |
448 } | 447 } |
OLD | NEW |