Speeding up use of gtk_render_background?

Hi

I’m trying to speed up some code using gtk_render_background, see here:
https://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx#n2655

And I see a lot of time spent in style calculations. Is there some way I can freeze/pre-calculate/etc this part of the drawing process?

Thanks, Noel

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.