Marco Martin d8a1a9eb08 don't regenerate frames when setting every property
Summary:
give frameSvg the concept of repaintBlocked(), that enables and
disables the regeneration of the frame data when a property is set.
the use case is when often, a lot of properties are set one after
the other (such as prefix, enabled borders, size)
collapse the formely similar, but a bit different logic of frame
regeneration is a single function for better maintanability.
QML FrameSvgItem sets repaintblocked when it starts and releases it just on oncomponentCompleted

Test Plan:
plasmashell still starts, autotests still work, all frames are rendered correctly
the destruction of old frames is cutted by 50%. in the qml profiler
the creation time of a framesvgitem slightly improved, on this machine from around 26 msecs to around 21, can still be improved, but at least the code is a bit simpler

Reviewers: #plasma

Subscribers: davidedmundson, plasma-devel, #frameworks

Tags: #plasma, #frameworks

Differential Revision: https://phabricator.kde.org/D4414
2017-02-07 13:08:27 +01:00
..
2017-01-03 09:13:39 +01:00
2017-01-03 09:13:39 +01:00
2017-01-03 09:13:39 +01:00
2017-01-03 09:13:39 +01:00
2013-04-03 02:23:22 +02:00
2016-05-10 19:16:28 +02:00
2014-10-21 18:06:04 +02:00
2017-01-16 18:17:34 +01:00
2017-01-08 16:00:20 +01:00
2017-01-16 18:17:34 +01:00
2016-02-17 17:16:02 +01:00