aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-11 11:56:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-13 13:50:51 +0000
commit009f51e43fee199a579ecdd773e3aa35aaa3b8b8 (patch)
treea9f507ec75b575fabf5625780bc0a5178cc3865d /include/utils
parentdb3b979ba18e11052c4f88856dacc0bb7799525a (diff)
simplify SkTFitsIn, try 2
Originally we wrote this in C++14 constexpr, but because this is used from public headers, we can't use C++14 yet. Now a somewhat sillier looking C++11 version. All the old tests still pass, and one new added. Updated the comments a bit for correctness and readability. Change-Id: I99c01e1346c1a5a36278cc08f30538112e5259aa Reviewed-on: https://skia-review.googlesource.com/134425 Commit-Queue: Mike Klein <mtklein@chromium.org> Commit-Queue: Ben Wagner <bungeman@google.com> Auto-Submit: Mike Klein <mtklein@chromium.org> Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include/utils')
0 files changed, 0 insertions, 0 deletions