Skip to content

Refactor GPU surface APIs take into account the fact that an external view embedder may want to render to the root surface. #38466

@chinmaygarde

Description

@chinmaygarde

Currently, the external view embedder (which was authored later than the GPU surfaces) can only render into overlays. However, this prevents us from presenting a unified view of composition into the root layer as well as overlays without adding hacks to the GPU surfaces to bypass rendering into the root. These hacks come in the form of the render_to_surface_ ivar on the GPUSurfaceGL. In the absence of these hacks, extra resources may need to be allocated unnecessarily. Notably, this hack is absent from the software surface.

The GPU surface APIs must be refactored to make the external view embedder a first class citizen of the rasterization subsystem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: platform-viewsEmbedding Android/iOS views in Flutter appse: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions