vcl: less text layout calls in Menu

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 5 September 2018 16:05 EDT

Number of GenericSalLayout::LayoutText() calls for each & every menu item till a Writer document is opened: 3 (before) -> 1 (after).

Change-Id: I08a3d174bf15bafbcbce612712f2ab773cd5e085 Reviewed-on: https://gerrit.libreoffice.org/60045

d70bf1c4caf3 vcl: less text layout calls in Menu
include/vcl/outdev.hxx | 9 ++++++---
vcl/source/outdev/text.cxx | 17 ++++++++++-------
vcl/source/window/menu.cxx | 14 ++++++++++++--
vcl/source/window/menuitemlist.cxx | 23 +++++++++++++++++++++++
vcl/source/window/menuitemlist.hxx | 6 ++++++
5 files changed, 57 insertions(+), 12 deletions(-)

Upstream: cgit.freedesktop.org


  • Share