Skip to content

[ios][platform_view]Use CALayer directly (rather than UIView) as the clip mask #149212

@hellohuanlin

Description

@hellohuanlin

Use case

UIView comes with overhead unrelated to rendering (e.g. hit testing). As experimented in this design doc, there can be non-trivial performance improvement.

Decoupling this from the software rendering work allows us to
(1) measure the improvement separately for a better understanding
(2) land the software rendering PR sooner

Proposal

UIView::mask likely just calls CALayer::mask API. We should directly use CALayer to avoid extra overhead comes with UIView.

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

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions