Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Unified Diff: ui/events/ozone/layout/xkb/scoped_xkb.h

Issue 817983002: ozone: xkb: Load keymaps on worker thread & cache them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/layout/xkb/scoped_xkb.h
diff --git a/ui/events/ozone/layout/xkb/scoped_xkb.h b/ui/events/ozone/layout/xkb/scoped_xkb.h
index 84efacbcf67ce97ae90d5c92bb2f714adcf1ac9a..66ec295a6f5c870a00fe8a9b48e48f640185ac67 100644
--- a/ui/events/ozone/layout/xkb/scoped_xkb.h
+++ b/ui/events/ozone/layout/xkb/scoped_xkb.h
@@ -19,6 +19,10 @@ struct XkbStateDeleter {
void operator()(xkb_state* state) { xkb_state_unref(state); }
};
+struct XkbKeymapDeleter {
+ void operator()(xkb_keymap* keymap) { xkb_keymap_unref(keymap); }
+};
+
} // namespace ui
#endif // UI_EVENTS_OZONE_LAYOUT_XKB_SCOPED_XKB_H_

Powered by Google App Engine
This is Rietveld 408576698