commit | d9a492fb553799dc7e9f81fc8f342246f0bc868c | [log] [tgz] |
---|---|---|
author | Herb Derby <herb@google.com> | Wed May 31 12:25:15 2023 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri Jun 02 18:37:02 2023 +0000 |
tree | 67dd57c2e3137233def0be9f74037d005036ed22 | |
parent | 98530c9eeb36634230f3d150bd1a1672951b1f78 [diff] |
Handle subnormal properly in close_to_linear The old code just assumed that if both A and B were close to zero that B would not dominate A forcing linear behavior. This is not necessarily the case, so check to make sure. Change-Id: I0ff4098ece02abbb49b2ba0ae4f429b5dccb8558 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/705226 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Herb Derby <herb@google.com>