[libkwineffects] Port the remaining bits of API to dynamic dispatch
ClosedPublic

Authored by zzag on Jan 7 2019, 5:28 PM.

Details

Summary

7834bec52a6770b16087be07a94cca6a165482a6 missed to port minimize and
unminimize to dynamic dispatch. In addition to that, we don't benefit
from QMetaObject::invokeMethod so port addRepaint and addLayerRepaint
to dynamic dispatch as well.

Diff Detail

Repository
R108 KWin
Branch
virtual-dispatch
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 6755
Build 6773: arc lint + arc unit
zzag created this revision.Jan 7 2019, 5:28 PM
Restricted Application added a project: KWin. · View Herald TranscriptJan 7 2019, 5:28 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
zzag requested review of this revision.Jan 7 2019, 5:28 PM
zzag updated this revision to Diff 48883.Jan 7 2019, 5:46 PM

Toplevel::addRepaint and Toplevel::addLayerRepaint no longer has to be Q_INVOKABLE.

Technically that's an API break on kwin scripting as TopLevel is exposed there.

I can't think why any script would need them, but we made a point of documenting them: https://techbase.kde.org/Development/Tutorials/KWin/Scripting/API_4.9#Functions_4

zzag added a comment.Jan 7 2019, 5:53 PM

Technically that's an API break on kwin scripting as TopLevel is exposed there.

I can't think why any script would need them, but we made a point of documenting them: https://techbase.kde.org/Development/Tutorials/KWin/Scripting/API_4.9#Functions_4

Oh, darn. You're right.

zzag updated this revision to Diff 48884.Jan 7 2019, 5:54 PM

Back to q_invokable

zzag added a comment.EditedJan 7 2019, 5:57 PM

Another potential API break: making EffectWindow::closeWindow() non-const. Though I hope it would be okay to break compatibility there, it doesn't make sense to have that method const.

davidedmundson accepted this revision.Jan 7 2019, 6:53 PM

missed to port minimize and unminimize to dynamic dispatch.

It wasn't exactly "missed", the commit description says it's porting all property getters as they were the only thing potentially called every frame.
But we may as well kill this moc-trampoline entirely. Ship it

This revision is now accepted and ready to land.Jan 7 2019, 6:53 PM
This revision was automatically updated to reflect the committed changes.