Skip to content

Reserve scene at the beginning of the paint pass #524

Open
@PoignardAzur

Description

@PoignardAzur

This is an extension of the pass spec work (see #512).

Vello should provide a SceneMetrics type, which could be returned from a Scene, and multiple SceneMetrics could be added together. The Scene should have a new Scene::reserve(metrics) constructor taking a SceneMetrics value.

We could then keep individual metrics for each widget, sum them during the paint pass, and store the sum in the root. At the beginning of each paint pass, we'd use metrics from the previous pass to reserve a complete scene.

See linebender/vello#667.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions