Skip to content

Commit

Permalink
When blurring, clamp to image's edge pixels, not to black (flutter#4546)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianosman authored Jan 12, 2018
1 parent 5ce89a0 commit e6c117d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/painting/image_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ void ImageFilter::initPicture(Picture* picture) {
}

void ImageFilter::initBlur(double sigma_x, double sigma_y) {
filter_ = SkBlurImageFilter::Make(sigma_x, sigma_y, nullptr);
filter_ = SkBlurImageFilter::Make(sigma_x, sigma_y, nullptr, nullptr,
SkBlurImageFilter::kClamp_TileMode);
}

} // namespace blink

0 comments on commit e6c117d

Please sign in to comment.