Skip to content

[Impeller] Flutter GPU: Deserialize ipscene assets in Flutter UI #117508

@bdero

Description

@bdero

An ipscene flatbuffer asset (root: fb::Scene) is able to be directly deserialized into an std::shared_ptr<impeller::scene::Node> within UI, which can then be passed to Impeller through a DisplayList op.

  • Load the ipscene flatbuffer file.
  • Decode all texture assets in the Scene->textures list through the normal image decoder flow to produce DlTextures.
  • Fire off a raster task to deserialize the scene by calling scene::Node::MakeFromFlatbuffer with the ipscene flatbuffer, the list of decoded Impeller texture handles (which should match the exact order of Scene->textures; pass nullptr for any images that failed to decode), and the allocator from the Impeller context (UIDartState::Current()->GetIOManager()->GetImpellerContext()).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecte: impellerImpeller rendering backend issues and features requestsengineflutter/engine repository. See also e: labels.flutter-gputeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Status

    🤔 Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy