diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-11-17 10:59:47 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2019-08-08 11:18:02 +0200 |
commit | afb326f07109da0035112e6f56e683e37b8a5d72 (patch) | |
tree | d80903f40fc0c481b4ea1e34c8cb94d82c056d2a /config.tests | |
parent | 6ac610c79bf7f311ee244d45583eb669ada58781 (diff) |
Refactor lockedAlphaMapForGlyph
Simply return a Glyph pointer and not a QImage to avoid allocating and
deleting lots of d pointers for QImage when drawing text. Saves one
new/delete pair per glyph drawn and speeds up text drawing by 10% for
relatively large glyphs (probably more for smaller ones).
The qtext::paintLayoutToPixmap() benchmark shows a 16% improvement
in performance with this change.
Renamed the method to glyphData().
Change-Id: I7a353de521e4f4321c770fb1ac6043d33f6f332c
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'config.tests')
0 files changed, 0 insertions, 0 deletions