commit | dab9d90634892a2a0775c545a89781bded75f69b | [log] [tgz] |
---|---|---|
author | Mike Klein <mtklein@google.com> | Fri Feb 26 10:17:48 2021 -0600 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Sun Feb 28 17:23:15 2021 +0000 |
tree | d09521377eb5f7851c7361bbc2f86f6f42c21f06 | |
parent | 033da9980358d7c26dd3cbe41ac3bb5098e113fe [diff] |
Reland "centralize runtime effect caching" This is a reland of ef7a28e26afb605ffcb170e35642e81027f27e9b This time, no destructor for the mutex. Original change's description: > centralize runtime effect caching > > Relative runtimes for creating luma color filter: > > - cached SkColorFilter --> 1x > - cached SkRuntimeEffect --> 12x > - no caching --> 186x > - this CL --> 24x > > Added insert_or_update() to SkLRUCache because > I keep falling into this trap using insert()... > > Change-Id: Ic3dad32d38fc001701d8e1ad5662ad382503418f > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/376776 > Commit-Queue: Mike Klein <mtklein@google.com> > Reviewed-by: Brian Osman <brianosman@google.com> Change-Id: I4a8612510d8a6961569698ead183b399e0c7c899 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/377236 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>