Skip to content

Commit

Permalink
LibWeb: Paint drop shadow filters
Browse files Browse the repository at this point in the history
  • Loading branch information
gmta committed Oct 25, 2024
1 parent 941658b commit 39d49a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ static sk_sp<SkImageFilter> to_skia_image_filter(CSS::ResolvedFilter::FilterFunc
auto color_filter = SkColorFilters::Matrix(matrix, SkColorFilters::Clamp::kNo);
return SkImageFilters::ColorFilter(color_filter, nullptr);
},
[&](CSS::ResolvedFilter::DropShadow const&) {
dbgln("TODO: Implement drop-shadow() filter function!");
return sk_sp<SkImageFilter> {};
[&](CSS::ResolvedFilter::DropShadow const& command) {
auto shadow_color = to_skia_color(command.color);
return SkImageFilters::DropShadow(command.offset_x, command.offset_y, command.radius, command.radius, shadow_color, nullptr);
});
}

Expand Down

0 comments on commit 39d49a4

Please sign in to comment.