Cache the results of ColorSpace::Contains()
ColorSpace::Contains() can be called a few times per frame for tile operations. The result of the call is deterministic, and called consistently on a small set of color spaces in gfx::DisplayColorSpaces, so store the results in a small MRUCache. Bug: 1073962 Change-Id: I61e2a8ff34291b686ed79ae4c301adb1c0792b35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2504051Reviewed-by:ccameron <ccameron@chromium.org> Reviewed-by:
kylechar <kylechar@chromium.org> Commit-Queue: Sean Gilhuly <sgilhuly@chromium.org> Cr-Commit-Position: refs/heads/master@{#826509}
Showing
Please register or sign in to comment