Roll clang further, fix buggy test (flutter/engine#23751)

This commit is contained in:
Dan Field
2021-01-19 12:51:53 -08:00
committed by GitHub
parent 8b90c7869e
commit db4709c440
2 changed files with 11 additions and 8 deletions

2
DEPS
View File

@@ -502,7 +502,7 @@ deps = {
'packages': [
{
'package': 'fuchsia/third_party/clang/${{platform}}',
'version': 'git_revision:25abd1994ed209c1bf4139946a42e36a42143a85'
'version': 'git_revision:7d48eff8ba172216fca3649a3c452de4c7c16c00'
}
],
'condition': 'host_os == "mac" or host_os == "linux"',

View File

@@ -14,19 +14,22 @@ ImageFilterLayer::ImageFilterLayer(sk_sp<SkImageFilter> filter)
void ImageFilterLayer::Preroll(PrerollContext* context,
const SkMatrix& matrix) {
TRACE_EVENT0("flutter", "ImageFilterLayer::Preroll");
Layer::AutoPrerollSaveLayerState save =
Layer::AutoPrerollSaveLayerState::Create(context);
SkRect child_bounds = SkRect::MakeEmpty();
PrerollChildren(context, matrix, &child_bounds);
if (filter_) {
const SkIRect filter_input_bounds = child_bounds.roundOut();
SkIRect filter_output_bounds =
filter_->filterBounds(filter_input_bounds, SkMatrix::I(),
SkImageFilter::kForward_MapDirection);
child_bounds = SkRect::Make(filter_output_bounds);
if (!filter_) {
set_paint_bounds(child_bounds);
return;
}
const SkIRect filter_input_bounds = child_bounds.roundOut();
SkIRect filter_output_bounds = filter_->filterBounds(
filter_input_bounds, SkMatrix::I(), SkImageFilter::kForward_MapDirection);
child_bounds = SkRect::Make(filter_output_bounds);
set_paint_bounds(child_bounds);
transformed_filter_ = nullptr;