D15424: [effects/showpaint] Modernize code
Vlad Zagorodniy <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag created this revision. zzag added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. zzag requested review of this revision. REVISION SUMMARY Summary of changes: - Use QVector to store colors - Add Q_OBJECT macro - Port away from QRegion::rects - Fix coding style - Use default member initialization - Use nullptr - Reserve rects in paintXrender The behavior of this effect haven't been changed, it still acts as before. TEST PLAN Compiles, and the Show Paint effect is still a psychedelic thing. REPOSITORY R108 KWin BRANCH effects-showpaint-modernize REVISION DETAIL https://phabricator.kde.org/D15424 AFFECTED FILES effects/showpaint/showpaint.cpp effects/showpaint/showpaint.h To: zzag, #kwin Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart