Move enumeration of color profile paths off main thread
This change moves the enumeration of color profile paths off main thread and cache values correctly. The code currently reads the color profiles off the main thread so it is not changing when the profiles are made available. Also, with the correct caching of the paths we won't be going down this expensive path as much. Currently we are re-enumerating and reading the color profiles whenever a top-level window message is received. On my fast dev box with 3 monitors just the enumeration of the color profile paths takes 80ms. This is way early in startup so it is critical to get this off the main thread. Bug: 1012342 Change-Id: I96c36380d485a811c1b94ae38fcabc0a99faea94 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847865 Commit-Queue: Chris Davis <chrdavis@microsoft.com> Reviewed-by:ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#703940}
Showing
Please register or sign in to comment