-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Anti-alias rounded borders on overflow: hidden views
Summary: When a view is rendered with a combination of `overflow: hidden` and `borderRadius: >0`, the `ReactViewGroup` would apply the border radius using Canvas `clipPath`. In Android graphics, clipPath is not an anti-aliased operation and caused aliasing artifacts. Changing the method to a bitmask using the `PorterDuff` method results in the same functionality, but with hardware accelerated antialiasing. #24486 Changelog: [Android][Change] - Views with overflow: hidden and borderRadius: >0 now render anti-aliased borders. Reviewed By: javache Differential Revision: D38914878 fbshipit-source-id: 45ac7e4aece7a76c4216412175e49d3d73b6f391
- Loading branch information
1 parent
18542b6
commit 7708cdc
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters