A framework for building native applications using React
Fix GH-41226 by suppressing path adjustment when not actually drawing a border (#46239)
Summary: When not drawing a border, the mGapBetweenPaths adjustment can create noticable pixelation when drawing curves through a low number of pixels. This is noticable mostly on buttons and such on low-dpi devices. This fix only applies the fix if clipping for the border radius is done. When drawing small radius rounded backgrounds (e.g. to draw a circle or button) we see visible pixelation (see [GH-41226](https://github.com/facebook/react-native/issues/41226)) This is particularly noticable on low DPI devices. [ANDROID] [FIXED] - Don't use mGapBetweenPaths if not drawing a border Pull Request resolved: https://github.com/facebook/react-native/pull/46239 Test Plan: Built an android app that directly uses CSSBackgroundDrawable to draw a background and verified repro of this issue.  Then modified the code according to this PR and verified that anti-aliasing is appropriately applied  Reviewed By: NickGerleman Differential Revision: D61925281 Pulled By: jorge-cab fbshipit-source-id: 93014629d031bd0d716cd3bb11e2c294dedad639
A
Andrew Knapp committed
512c9393148a35cb37725881e3a18b822e29faa4
Parent: b6bdecd
Committed by Nicola Corti <ncor@meta.com>
on 1/22/2025, 3:13:53 PM