@@ -465,12 +465,12 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
465465 return EntityPass::EntityResult::Skip ();
466466 }
467467
468- std::shared_ptr<Contents> subpass_backdrop_filter_contents = nullptr ;
468+ std::shared_ptr<Contents> backdrop_filter_contents = nullptr ;
469469 if (subpass->backdrop_filter_proc_ ) {
470470 auto texture = pass_context.GetTexture ();
471471 // Render the backdrop texture before any of the pass elements.
472472 const auto & proc = subpass->backdrop_filter_proc_ ;
473- subpass_backdrop_filter_contents =
473+ backdrop_filter_contents =
474474 proc (FilterInput::Make (std::move (texture)), subpass->xformation_ ,
475475 /* is_subpass*/ true );
476476
@@ -507,10 +507,9 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
507507 return EntityPass::EntityResult::Skip ();
508508 }
509509
510- auto subpass_coverage =
511- (subpass->flood_clip_ || subpass_backdrop_filter_contents)
512- ? coverage_limit
513- : GetSubpassCoverage (*subpass, coverage_limit);
510+ auto subpass_coverage = (subpass->flood_clip_ || backdrop_filter_contents)
511+ ? coverage_limit
512+ : GetSubpassCoverage (*subpass, coverage_limit);
514513 if (!subpass_coverage.has_value ()) {
515514 return EntityPass::EntityResult::Skip ();
516515 }
@@ -533,18 +532,17 @@ EntityPass::EntityResult EntityPass::GetEntityForElement(
533532
534533 // Stencil textures aren't shared between EntityPasses (as much of the
535534 // time they are transient).
536- if (!subpass->OnRender (
537- renderer, // renderer
538- root_pass_size, // root_pass_size
539- subpass_target, // pass_target
540- subpass_coverage->origin , // global_pass_position
541- subpass_coverage->origin -
542- global_pass_position, // local_pass_position
543- ++pass_depth, // pass_depth
544- stencil_coverage_stack, // stencil_coverage_stack
545- subpass->stencil_depth_ , // stencil_depth_floor
546- subpass_backdrop_filter_contents // backdrop_filter_contents
547- )) {
535+ if (!subpass->OnRender (renderer, // renderer
536+ root_pass_size, // root_pass_size
537+ subpass_target, // pass_target
538+ subpass_coverage->origin , // global_pass_position
539+ subpass_coverage->origin -
540+ global_pass_position, // local_pass_position
541+ ++pass_depth, // pass_depth
542+ stencil_coverage_stack, // stencil_coverage_stack
543+ subpass->stencil_depth_ , // stencil_depth_floor
544+ backdrop_filter_contents // backdrop_filter_contents
545+ )) {
548546 // Validation error messages are triggered for all `OnRender()` failure
549547 // cases.
550548 return EntityPass::EntityResult::Failure ();
0 commit comments