Skip to content

Imbalanced calls to PlatformView::NotifyCreated and NotifyDestroyed will cause unnecessary surface re-creation. #61050

@chinmaygarde

Description

@chinmaygarde

Today, the Flutter engine platform view expects that calls to NotifyCreated and NotifyDestroyed are balanced. However, at least the iOS embedding might call NotifyCreated multiple times. This leads to re-creation of the surface and synchronization of all Flutter engine managed threads. This is unnecessary and slows down application foregrounding and must be optimized either in the embedding or in the platform agnostic platform view layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions