]> git.lyx.org Git - lyx.git/commit
Make the non-drawing cases faster in TextMetrics::drawParagraph
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 29 Feb 2016 15:07:35 +0000 (16:07 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 May 2016 12:55:41 +0000 (14:55 +0200)
commitfc73ebc16c4f0aca76360415a94eca57f283e44e
tree08967d986bbc69e777a40d6b56b18dccfb07e1c3
parent96fee0ed7acdd9d757d59b126f07631176e2d96f
Make the non-drawing cases faster in TextMetrics::drawParagraph

There are two main cases:
* when drawing is disabled from the start, use a simplified code that only paints insets (in order to cache positions).
* when the row is not visible, do the same.

The goal of this optimization is to be able to always run a no-drawing draw after the metrics have been computed.
src/TextMetrics.cpp