commit | b82c3d6ff2ac62c8a14b38b0d658a51e7d8cf81e | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@chromium.org> | Mon Jun 11 11:56:57 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 12 15:44:23 2018 +0000 |
tree | 5d6c9bbf90bd0c98b05bcfcfd33bc460bc12e5ab | |
parent | e5b7e6d2ea4f0d0dc8838bd265ea29b00ce3cc3e [diff] |
simplify SkTFitsIn Now that we're C++14, a constexpr SkTFitsIn() is a lot easier. All the old tests still pass, and one new added. Updated the comments a bit for correctness and readability. Change-Id: I0f60e32e545fe4f2fb14e66a2bf25d562dbd680f Reviewed-on: https://skia-review.googlesource.com/133831 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>