Skip to content

OpacityLayer peephole optimization does not optimize multiple non-overlapping children #93899

@flar

Description

@flar

The peephole optimization that will allow an OpacityLayer to hand off its opacity value to its children to avoid a saveLayer will only currently apply its optimization to a single child as it is initially implemented in flutter/engine#29775.

With further processing, the children could be checked for their paint_bounds() overlapping and multiple children could all inherit the opacity value, increasing the number of cases optimized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions