Skip to content

GPU specific Scene.toImage and Picture.toImage #40990

@cmkweber

Description

@cmkweber

Currently Scene.toImage() and Picture.toImage() return the image asynchronously through 'makeSnapshot'. Ideally, these would call a GPU specific version of 'makeSnapshot' and return the result synchronously so the result can be used in further drawing on the same frame.

This opens up the door for numerous effects, but can also be incorporated into 'paintImage' in conjunction with ImageShader to help speed up image tiling which currently issues a draw command for each tile.

See here for more information:
flutter/engine#8835 (comment)

cc @Hixie @liyuqian @reed-at-google

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: imagesLoading, displaying, rendering imagesengineflutter/engine related. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions