Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more unit tests for rounding values to pixel grid (#1776)
Summary: Pull Request resolved: #1776 # Changelog: [Internal] - I was looking into some profiling results and noticed that Yoga has some quirky custom logic when it comes to rounding to the pixel grid, especially for the values that are halfway through. There are already unit tests in place, but those cases weren't covered, so I am adding these extra corner cases here, to make sure they are covered in case that the actual rounding function may get modified (which it might make sense to, as it's currently can be more expensive than it could have been in some scenarios). Reviewed By: christophpurrer Differential Revision: D67712673 fbshipit-source-id: da1b7339a8939ced8d91f15441bc7d1f8af768c8
- Loading branch information