Skip to content

[Impeller] toImage and toImageSync produce differing pixel contents on Vulkan host tests #193029

Closed

Description

@andywolff

On the Vulkan backend (both on Linux and on macOS host tests via MoltenVK), Picture.toImage and Picture.toImageSync produce differing pixel byte outputs for the same recorded canvas operations. This causes the test toImage and toImageSync have identical contents in testing/dart/canvas_test.dart to fail when executed with --impeller-backend=vulkan.

This issue tracks investigating and resolving the rendering or alpha/premultiplication discrepancies between both snapshot paths on Vulkan (replacing legacy closed issue #108835).

Steps to Reproduce

  1. In engine/src/flutter/testing/dart/canvas_test.dart, remove the backend skip condition inside test('toImage and toImageSync have identical contents').
  2. Run the Dart test runner with --impeller-backend=vulkan.

Observed Behavior

The byte data returned by toImage().toByteData() does not match toImageSync().toByteData().

Expected Behavior

Both asynchronous and synchronous snapshot methods should produce identical rasterized pixel buffers across all Impeller backends.

Environment

  • Engine testing environment (testing/dart/canvas_test.dart)
  • Impeller Vulkan backend (Linux and macOS MoltenVK)

Activity

  1. added
    engineflutter/engine related. See also e: labels.
    on Sep 18, 2026
  2. added
    in triagePresently being triaged by the triage team
    a: imagesLoading, displaying, rendering images
    c: renderingUI glitches reported at the engine/skia or impeller rendering level
    e: impellerImpeller rendering backend issues and features requests
    and removed
    in triagePresently being triaged by the triage team
    on Sep 21, 2026
  3. added
    P2Important issues not at the top of the work list
    on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: imagesLoading, displaying, rendering imagesc: renderingUI glitches reported at the engine/skia or impeller rendering levele: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions