Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Fix solid stroke overdraw #121

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

bdero
Copy link
Member

@bdero bdero commented Apr 7, 2022

Relies on changes in #120.

Fixes flutter/flutter#101330.

  • Render non-opaque solid strokes, incrementing the stencil to avoid overdraw.
  • Return the stencil to its previous state by drawing a clip restore.

Before:
image

After:

Screen.Recording.2022-04-06.at.9.31.24.PM.mov

@bdero bdero requested review from chinmaygarde and dnfield April 7, 2022 04:38
@bdero bdero force-pushed the bdero/fix-stroke-overdraw branch from 05f7c56 to 60b4e2f Compare April 7, 2022 04:43
@bdero bdero force-pushed the bdero/fix-stroke-overdraw branch from 60b4e2f to f196dd6 Compare April 7, 2022 04:47
@bdero bdero merged commit 2ffb1f5 into flutter:main Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Impeller] Transparent paths overdraw
2 participants