ozone: xkbcommon: Pre-compute masks when setting keymap
Currently, XkbKeyboardLayoutEngine::DifficultKeyboardCode performs unnecessary re-computation of XKB masks for Shift and AltGr modifiers when trying to decode key codes. This change proposes an optimization consisting on pre-computing and caching those masks only once, when the keymap is set, then saving some cpu cycles when decoding difficult keysyms/chars. R=spang@chromium.org Bug: 896640 Change-Id: Ifad7511f94312777d057930caf37b5c96ffbbad8 Reviewed-on: https://chromium-review.googlesource.com/c/1489951Reviewed-by:Michael Spang <spang@chromium.org> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/master@{#635760}
Showing
Please register or sign in to comment