Skip to content

ui.Canvas native methods should call DisplayListBuilder methods directly #93415

@flar

Description

@flar

Currently all of the native methods in ui.Canvas make a call on an SkCanvas* to record their operations. When the DisplayList feature is enabled, those calls are going through an adapter which repeats them into an associated DisplayListBuilder object. Eventually we will be eliminating the legacy SkPicture support and the DisplayListBuilder path will be the only supported implementation. At that point the adapter will be unnecessary overhead and so we should teach the native methods to call directly into the Builder methods.

See also #93417 for doing the same work for the ui.Paragraph code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listengineflutter/engine related. See also e: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions