Skip to content

Reduce Path clip Mutators to simpler geometry #164666

Open

Description

@flar

Currently if Flutter creates a ClipPath layer, that layer will be passed along to Mutators as a path and most mutators will just convert it to a platform path, but it might be a simpler rect, oval, or rrect. Since the rendering backends tend to reduce the clipping to a simpler form, there may be a mismatch between the paths being expressed and the actual rendering performed as was discovered while implementing #164258

The clip_path_layer could perform the simplification so as to make Mutators and canvas->clip operations more compatible and simplify the implementation logic required in the embedders.

Activity

  1. added
    in triagePresently being triaged by the triage team
    engineflutter/engine related. See also e: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Mar 6, 2025
  2. jonahwilliams commented on Mar 10, 2025

    @jonahwilliams
    Contributor

    We'd need to double check, but I suspect that we may end up converting the simple shapes back into paths in some cases, so the conversion may be pointless (once we fix the conic thing).

  3. added
    P3Issues that are less important to the Flutter project
    on Mar 10, 2025
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

    P3Issues that are less important to the Flutter projectengineflutter/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