commit | 1d89532d5988c3e70f31fce471c6eb41ae68c05e | [log] [tgz] |
---|---|---|
author | Herb Derby <herb@google.com> | Wed Dec 16 14:42:40 2020 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Dec 17 00:01:53 2020 +0000 |
tree | 8865fe52bdc24e5b8a8dbfdaa6aa02a10582b446 | |
parent | d6f2338ab194ca3cb58c52e24f8c530c51769cb5 [diff] |
extract fibonacci allocator block code Extract the fibonacci progression block size calculation. Simplify it by using a common array for the fibonacci number. Add unit tests to check extreme limits. Change-Id: I270a713881590f7e17be58dc9072ab7a79a7388d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/345124 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Herb Derby <herb@google.com>