Recalculate connected hash only on change and emit signal
AcceptedPublic

Authored by romangg on Nov 18 2018, 7:26 PM.

Details

Reviewers
mart
Group Reviewers
Plasma
Summary

Instead of recomputing the connected outputs hash on every access, store
it in Config and only recalculate it on a change of one of its inputs.

Also inform consumers about the change via a separate signal.

Test Plan

Autotest extended.

Diff Detail

Repository
R110 KScreen Library
Branch
configConnectedOutputsHashChanged
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5093
Build 5111: arc lint + arc unit
romangg created this revision.Nov 18 2018, 7:26 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 18 2018, 7:26 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
romangg requested review of this revision.Nov 18 2018, 7:26 PM
romangg added a comment.EditedNov 18 2018, 7:28 PM

Checking the edid is necessary, because it might be set asynchronously and before that the hash is based on the output name only.

That said I can only test this with the autotest, but not with my hardware, because KWin does not like to send the edid values for my screens.

mart accepted this revision.Nov 23 2018, 12:33 PM
This revision is now accepted and ready to land.Nov 23 2018, 12:33 PM