Skip to content

Enable RasterCache for clipper layers using saveLayer #102512

@wangying3426

Description

@wangying3426

As we all know, saveLayer has a bad impact on performance, related ​discussions include: #92874 (comment)

Now that, ClipPathLayer/ClipRectLayer/ClipRRectLayer/PhysicalShapeLayer will use saveLayer when clipBehavior is set to Clip::antiAliasWithSaveLayer. Although Clip::antiAliasWithSaveLayer is not recommended and should be less needed, in fact, we found that some of our developers still use it in daily development.

Therefore, it will help to optimize performance if the raster cache can be used to reduce the use of saveLayer in those cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: performanceRelates to speed or footprint issues (see "perf:" labels)c: proposalA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions