Skip to content

Commit

Permalink
[Impeller] convert aiks blur tests to new canvas. (#54565)
Browse files Browse the repository at this point in the history
Part of DL interop. Currently experiencing some ... issues with blur radius/sigma.
EDIT: was rrect_blur vs gaussian: fixed now.

Part of flutter/flutter#142054

Reland because of CI issue?
  • Loading branch information
jonahwilliams authored Aug 15, 2024
1 parent 971ddd9 commit e783ec6
Show file tree
Hide file tree
Showing 6 changed files with 985 additions and 902 deletions.
1 change: 1 addition & 0 deletions ci/licenses_golden/excluded_files
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
../../../flutter/impeller/display_list/aiks_dl_atlas_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_basic_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_blend_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_blur_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_clip_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_gradient_unittests.cc
../../../flutter/impeller/display_list/aiks_dl_opacity_unittests.cc
Expand Down
6 changes: 6 additions & 0 deletions display_list/dl_color.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ struct DlColor {
static constexpr DlColor kCornflowerBlue() {return DlColor(0xFF6495ED);};
static constexpr DlColor kCrimson() {return DlColor(0xFFFF5733);};
static constexpr DlColor kAqua() {return DlColor(0xFF00FFFF);};
static constexpr DlColor kOrange() {return DlColor(0xFFFFA500);};
static constexpr DlColor kPurple() {return DlColor(0xFF800080);};
static constexpr DlColor kLimeGreen() {return DlColor(0xFF32CD32);};
static constexpr DlColor kGreenYellow() {return DlColor(0xFFADFF2F);};
static constexpr DlColor kDarkMagenta() {return DlColor(0xFF8B008B);};
static constexpr DlColor kOrangeRed() {return DlColor(0xFFFF4500);};
// clang-format on

constexpr bool isOpaque() const { return getAlpha() == 0xFF; }
Expand Down
Loading

0 comments on commit e783ec6

Please sign in to comment.