<table><tr><td style="">mart created this revision.<br />mart added a reviewer: Plasma.<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added subscribers: Frameworks, plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4414" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>give frameSvg the concept of repaintBlocked(), that enables and<br />
disables the regeneration of the frame data when a property is set.<br />
the use case is when often, a lot of properties are set one after<br />
the other (such as prefix, enabled borders, size)<br />
collapse the formely similar, but a bit different logic of frame<br />
regeneration is a single function for better maintanability.<br />
QML FrameSvgItem sets repaintblocked when it starts and releases it just on oncomponentCompleted</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>plasmashell still starts, autotests still work, all frames are rendered correctly<br />
the destruction of old frames is cutted by 50%. in the qml profiler<br />
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</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>mart/FrameSvgTransactions</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4414" rel="noreferrer">https://phabricator.kde.org/D4414</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/data/background.svgz<br />
autotests/framesvgtest.cpp<br />
autotests/framesvgtest.h<br />
src/declarativeimports/core/framesvgitem.cpp<br />
src/declarativeimports/core/framesvgitem.h<br />
src/plasma/framesvg.cpp<br />
src/plasma/framesvg.h<br />
src/plasma/private/framesvg_p.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>plasma-devel, Frameworks, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>