diff options
author | fmalita <fmalita@chromium.org> | 2015-02-16 13:00:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-16 21:01:36 +0000 |
commit | 2214663a56798add41d6ac09a893c09c77b328ba (patch) | |
tree | c0344137c5bb4db2d2c1feaff3d1d4cfbda7a25d /ui | |
parent | cce89f1c400ce83185bf9bc9ee921427bdb23d94 (diff) | |
download | chromium_src-2214663a56798add41d6ac09a893c09c77b328ba.zip chromium_src-2214663a56798add41d6ac09a893c09c77b328ba.tar.gz chromium_src-2214663a56798add41d6ac09a893c09c77b328ba.tar.bz2 |
Remove SK_SUPPORT_LEGACY_ADDRRECT
TBR=reed@google.com,robertphillips@google.com
BUG=458898
Review URL: https://codereview.chromium.org/931463002
Cr-Commit-Position: refs/heads/master@{#316504}
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gfx/path_win_unittest.cc | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/ui/gfx/path_win_unittest.cc b/ui/gfx/path_win_unittest.cc index 9ca4cf1..1c211d7 100644 --- a/ui/gfx/path_win_unittest.cc +++ b/ui/gfx/path_win_unittest.cc @@ -42,31 +42,36 @@ std::vector<SkIRect> GetRectsFromHRGN(HRGN region) { // Test that rectangle with round corners stil has round corners after // converting from SkPath to the HRGN. +// FIXME: this test is fragile (it depends on rrect rasterization impl) TEST(CreateHRGNFromSkPathTest, RoundCornerTest) { const SkIRect rects[] = { - { 17, 0, 33, 1}, - { 12, 1, 38, 2}, - { 11, 2, 39, 3}, - { 9, 3, 41, 4}, - { 8, 4, 42, 5}, - { 6, 5, 44, 6}, - { 5, 6, 45, 8}, - { 4, 8, 46, 9}, - { 3, 9, 47, 11}, - { 2, 11, 48, 12}, - { 1, 12, 49, 17}, - { 0, 17, 50, 33}, - { 1, 33, 49, 38}, - { 2, 38, 48, 39}, - { 3, 39, 47, 41}, - { 4, 41, 46, 42}, - { 5, 42, 45, 44}, - { 6, 44, 44, 45}, - { 8, 45, 42, 46}, - { 9, 46, 41, 47}, - { 11, 47, 39, 48}, - { 12, 48, 38, 49}, - { 17, 49, 33, 50}, + { 16, 0, 34, 1 }, + { 12, 1, 38, 2 }, + { 10, 2, 40, 3 }, + { 9, 3, 41, 4 }, + { 7, 4, 43, 5 }, + { 6, 5, 44, 6 }, + { 5, 6, 45, 7 }, + { 4, 7, 45, 8 }, + { 4, 8, 46, 9 }, + { 3, 9, 47, 10 }, + { 2, 10, 47, 11 }, + { 2, 11, 48, 12 }, + { 1, 12, 49, 16 }, + { 0, 16, 50, 34 }, + { 1, 34, 49, 38 }, + { 2, 38, 48, 39 }, + { 2, 39, 47, 40 }, + { 3, 40, 47, 41 }, + { 4, 41, 46, 42 }, + { 4, 42, 45, 43 }, + { 5, 43, 45, 44 }, + { 6, 44, 44, 45 }, + { 8, 45, 42, 46 }, + { 9, 46, 41, 47 }, + { 11, 47, 39, 48 }, + { 12, 48, 38, 49 }, + { 16, 49, 34, 50 }, }; Path path; |