Cache dark mode and high contrast status in NativeTheme
This gets called a *lot* when fetching colors while painting which assumes it's cheap. In fact, it's responsible for about 25% of paint time on Windows and ~6% on Mac (per profiling in the field). Bug: 950063 Change-Id: I57905fffeb51b884a0e94bac28e10b05caacd180 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1565063Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:
Robert Liao <robliao@chromium.org> Reviewed-by:
Robert Sesek <rsesek@chromium.org> Commit-Queue: Leonard Grey <lgrey@chromium.org> Cr-Commit-Position: refs/heads/master@{#654848}
Showing
Please register or sign in to comment