Roll clang further, fix buggy test (flutter/engine#23751)
This commit is contained in:
2
DEPS
2
DEPS
@@ -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"',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user