commit | dfee5a2c360f4660dfad53bfd06d7923f98e242e | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Thu Oct 03 03:42:49 2024 +0000 |
committer | Vishnu Nair <vishnun@google.com> | Thu Oct 03 15:52:40 2024 +0000 |
tree | c3aa5638ace0a392c72140e3230ab5e0a907dd53 | |
parent | f151262626f1c08a104cc35d9864493ea8a72dec [diff] |
Fix rounding error when constructing Rect from FloatRect Current rounding logic does not handle negative values correctly. FloatRect(-1080,...) is converted to Rect(-1079,...) Fix this by using the standard rounding function. Flag: EXEMPT build error (b/350967139) Bug: 310950423 Test: presubmit Change-Id: Ib8c5c393040149225e5b2bc858c21894e306a456