Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit b58dbc8

Browse files
authored
Roll clang further, fix buggy test (#23751)
1 parent 915e2ca commit b58dbc8

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"',

flow/layers/image_filter_layer.cc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ ImageFilterLayer::ImageFilterLayer(sk_sp<SkImageFilter> filter)
1414
void 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;

0 commit comments

Comments
 (0)