diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-06-02 23:57:04 -0400 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-06-07 15:22:35 +0200 |
commit | 08814a34e3a3841c316dfb27a07583049abc5195 (patch) | |
tree | 88802989d6e9138e8791c82031821be611420371 /vcl/inc | |
parent | f6134b153a0b172e6f8f0a8e76985bd6a7848692 (diff) |
vcl: refresh font cache only on real change
GTK3 emits way too many style-updated, which triggers font cache updates. The
avoidance of unecessary font cache updates was first implemented in 29c55564.
Unfortuantely, it seems that the current font-options was never set as
last-seen font-options, so still to many fonts-changed were emitted
Change-Id: I01a47d4d7fb033e335b1a49ffa6e1bb98f7fd28d
Reviewed-on: https://gerrit.libreoffice.org/55287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/gtk/gtkinst.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/unx/gtk/gtkinst.hxx b/vcl/inc/unx/gtk/gtkinst.hxx index 62cf55d20ce3..41ba5675df0b 100644 --- a/vcl/inc/unx/gtk/gtkinst.hxx +++ b/vcl/inc/unx/gtk/gtkinst.hxx @@ -237,7 +237,7 @@ public: virtual const cairo_font_options_t* GetCairoFontOptions() override; const cairo_font_options_t* GetLastSeenCairoFontOptions(); - void ResetLastSeenCairoFontOptions(); + void ResetLastSeenCairoFontOptions(const cairo_font_options_t* pOptions); void RemoveTimer (); |