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

Commit 303f75d

Browse files
author
Chris Yang
committed
get cull_rect from layer_state
1 parent 032baff commit 303f75d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flow/layers/backdrop_filter_layer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void BackdropFilterLayer::Preroll(PrerollContext* context) {
4444
Layer::AutoPrerollSaveLayerState::Create(context, true, bool(filter_));
4545
if (context->view_embedder != nullptr) {
4646
context->view_embedder->PushFilterToVisitedPlatformViews(
47-
filter_, context->cull_rect);
47+
filter_, context->state_stack.local_cull_rect());
4848
}
4949
SkRect child_paint_bounds = SkRect::MakeEmpty();
5050
PrerollChildren(context, &child_paint_bounds);

flow/layers/layer_state_stack.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ void LayerStateStack::BackdropFilterEntry::apply(LayerStateStack* stack) const {
656656
stack->builder_->saveLayer(&bounds_, pPaint, filter_.get());
657657
}
658658
if (stack->mutators_) {
659-
stack->mutators_->PushBackdropFilter(filter_);
659+
stack->mutators_->PushBackdropFilter(filter_, stack->local_cull_rect());
660660
}
661661
stack->outstanding_ = {};
662662
}

0 commit comments

Comments
 (0)