svtools: less text layout calls in Ruler

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 6 September 2018 14:18 EDT

Number of GenericSalLayout::LayoutText() calls during Writer startup: 2603 -> 1616 (18 -> 1 layouts / included number).

Change-Id: I9a1a1131707bb6bc31683bbf609319f4bc22de92 Reviewed-on: https://gerrit.libreoffice.org/60087

bcb9be395cd7 svtools: less text layout calls in Ruler
include/svtools/ruler.hxx | 3 +++
include/vcl/outdev.hxx | 3 ++-
svtools/source/control/ruler.cxx | 41 +++++++++++++++++++++++++++++++++++++---
vcl/source/outdev/text.cxx | 6 ++++--
4 files changed, 47 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share