-
Notifications
You must be signed in to change notification settings - Fork 30.2k
[iOS] try using clipToBounds instead of masks for rectangular clips. #142830
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appsEmbedding Android/iOS views in Flutter appsplatform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Type
Projects
Status
Done