This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ deps = {
502502 'packages' : [
503503 {
504504 'package' : 'fuchsia/third_party/clang/${{platform}}' ,
505- 'version' : 'git_revision:25abd1994ed209c1bf4139946a42e36a42143a85'
505+ 'version' : 'git_revision:7d48eff8ba172216fca3649a3c452de4c7c16c00'
506506 }
507507 ],
508508 'condition' : 'host_os == "mac" or host_os == "linux"' ,
Original file line number Diff line number Diff line change @@ -14,19 +14,22 @@ ImageFilterLayer::ImageFilterLayer(sk_sp<SkImageFilter> filter)
1414void ImageFilterLayer::Preroll (PrerollContext* context,
1515 const SkMatrix& matrix) {
1616 TRACE_EVENT0 (" flutter" , " ImageFilterLayer::Preroll" );
17-
1817 Layer::AutoPrerollSaveLayerState save =
1918 Layer::AutoPrerollSaveLayerState::Create (context);
2019
2120 SkRect child_bounds = SkRect::MakeEmpty ();
2221 PrerollChildren (context, matrix, &child_bounds);
23- if (filter_) {
24- const SkIRect filter_input_bounds = child_bounds.roundOut ();
25- SkIRect filter_output_bounds =
26- filter_->filterBounds (filter_input_bounds, SkMatrix::I (),
27- SkImageFilter::kForward_MapDirection );
28- child_bounds = SkRect::Make (filter_output_bounds);
22+
23+ if (!filter_) {
24+ set_paint_bounds (child_bounds);
25+ return ;
2926 }
27+
28+ const SkIRect filter_input_bounds = child_bounds.roundOut ();
29+ SkIRect filter_output_bounds = filter_->filterBounds (
30+ filter_input_bounds, SkMatrix::I (), SkImageFilter::kForward_MapDirection );
31+ child_bounds = SkRect::Make (filter_output_bounds);
32+
3033 set_paint_bounds (child_bounds);
3134
3235 transformed_filter_ = nullptr ;
You can’t perform that action at this time.
0 commit comments