commit | 750109bfd19d6a7e9b56ab2818f5243f6c572555 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Oct 30 13:45:46 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Oct 30 18:24:02 2020 +0000 |
tree | 8a5581e80b5c09005e0ff1926d7477af81f478ce | |
parent | 09479909d1d43629ddd80a17622d15acb6644c5c [diff] |
Update component arrays to use SkSTArray<4, int8_t>. Profiling sksl_large showed a non-trivial amount of time was spent on allocating vector<int>s related to swizzle components. This CL essentially eliminates that cost, for a ~2% savings. Nanobench before: http://screen/35m2rfy5B8h9eyg Nanobench after: http://screen/4GuW6ipodyBL34h Change-Id: I653b69bf1bfbcfdf048987edd23e6f14a5ef3fbc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/330336 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>