plasma-framework/autotests
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
..
data don't regenerate frames when setting every property 2017-02-07 13:08:27 +01:00
CMakeLists.txt Revert "port all output to QCDebug/QCWarning" 2016-10-19 03:16:16 +09:00
configmodeltest.cpp ConfigModel: Don't try to resolve empty source path from package 2016-05-04 17:34:02 +02:00
configmodeltest.h ConfigModel: Don't try to resolve empty source path from package 2016-05-04 17:34:02 +02:00
coronatest.cpp Fix most of Clazy warnings in plasma-framework 2016-02-29 00:13:41 +01:00
coronatest.h Use Q_DECL_OVERRIDE where possible 2015-02-13 13:31:58 +01:00
coronatestresources.qrc add a simple autotest for corona layouts 2014-07-11 22:01:56 +02:00
dialognativetest.cpp Fix #374127 misplacement of popups from dock wins 2016-12-30 01:07:43 +02:00
dialognativetest.h Fix #374127 misplacement of popups from dock wins 2016-12-30 01:07:43 +02:00
dialogqmltest.cpp Fix most of Clazy warnings in plasma-framework 2016-02-29 00:13:41 +01:00
dialogqmltest.h Dialog auto tests 2014-09-26 16:17:28 +02:00
dialogstatetest.cpp Skip autotest that is broken with Qt 5.5 2016-08-07 13:25:07 +02:00
dialogstatetest.h Fix the infamous 'dialogs show up on the Task Manager' bug once more. 2016-07-15 19:40:37 +09:00
dynamictreemodel.cpp Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
dynamictreemodel.h Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
fallbackpackagetest.cpp Fix most of Clazy warnings in plasma-framework 2016-02-29 00:13:41 +01:00
fallbackpackagetest.h more verbose name 2014-09-01 20:36:06 +02:00
framesvgtest.cpp don't regenerate frames when setting every property 2017-02-07 13:08:27 +01:00
framesvgtest.h don't regenerate frames when setting every property 2017-02-07 13:08:27 +01:00
i18ndcheck.sh Add a test that i18nd is used throughout 2014-06-05 13:03:39 +02:00
iconitemtest.cpp [Icon Item] Fix updating implicit size when icon sizes change 2017-01-08 16:16:59 +01:00
iconitemtest.h [Icon Item] Fix updating implicit size when icon sizes change 2017-01-08 16:16:59 +01:00
modeltest.cpp Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
modeltest.h Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
packagemetadatatest.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2015-11-04 17:07:45 +00:00
packagestructuretest.cpp Fix most of Clazy warnings in plasma-framework 2016-02-29 00:13:41 +01:00
packagestructuretest.h tests for isValid and hasValidStructure 2014-08-08 14:12:22 +02:00
packageurlinterceptortest.cpp Move stray tests to the root directory to be more like 2014-04-18 02:25:50 +10:00
packageurlinterceptortest.h Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
plasma-test-appletsrc make sure applets are sorted by id 2014-09-17 14:47:13 +02:00
plasmoidpackagerc tests and autotests in top level dir 2014-02-10 15:17:07 +01:00
plasmoidpackagetest.cpp Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
plasmoidpackagetest.h Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
pluginloadertest.cpp disable the tests when no plugins are installed 2016-05-20 12:16:21 +02:00
pluginloadertest.h disable the tests when no plugins are installed 2016-05-20 12:16:21 +02:00
signed.plasmoid tests and autotests in top level dir 2014-02-10 15:17:07 +01:00
signed.plasmoid.invalid.sig tests and autotests in top level dir 2014-02-10 15:17:07 +01:00
signed.plasmoid.sig tests and autotests in top level dir 2014-02-10 15:17:07 +01:00
sortfiltermodeltest.cpp Revert "port all output to QCDebug/QCWarning" 2016-10-19 03:16:16 +09:00
sortfiltermodeltest.h Move stray tests to the root directory to be more like 2014-04-18 02:25:50 +10:00
storagetest.cpp Fix most of Clazy warnings in plasma-framework 2016-02-29 00:13:41 +01:00
storagetest.h Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
themetest.cpp [autotest] Extend ThemeTest with a case for compositing changes 2016-08-03 11:28:23 +02:00
themetest.h [autotest] Extend ThemeTest with a case for compositing changes 2016-08-03 11:28:23 +02:00
TODO tests and autotests in top level dir 2014-02-10 15:17:07 +01:00