Skip to content

[iOS] try using clipToBounds instead of masks for rectangular clips. #142830

@jonahwilliams

Description

@jonahwilliams

From #142813 , it seems like ClipRects implemented via mask views might create their masks via software rasterization. We might be able to perform rectangular clips more efficiently by using a parent UIViews frame and clipToBoundsProperty.

This is discussed as one of the answers in https://stackoverflow.com/questions/11391058/simply-mask-a-uiview-with-a-rectangle . We could confirm this is working via CPU profiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions