[platforms/virtual] Add virtual output class
ClosedPublic

Authored by romangg on Mar 15 2018, 12:09 PM.

Details

Summary

This matches the DRM backend more closely and allows mid-test removal and
addition of virtual outputs with different properties in the future.

Test Plan

Before and after 93% tests passed.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
romangg created this revision.Mar 15 2018, 12:09 PM
Restricted Application added a project: KWin. · View Herald TranscriptMar 15 2018, 12:09 PM
Restricted Application added subscribers: KWin, kwin. · View Herald Transcript
romangg requested review of this revision.Mar 15 2018, 12:09 PM
romangg planned changes to this revision.Mar 15 2018, 12:38 PM

Running all tests now show that more of them fail than I predicted. Will investigate this first.

romangg updated this revision to Diff 29599.Mar 15 2018, 2:24 PM
  • Fix dummy output creation
romangg edited the test plan for this revision. (Show Details)Mar 15 2018, 2:26 PM
graesslin requested changes to this revision.Mar 17 2018, 11:20 AM
graesslin added a subscriber: graesslin.
graesslin added inline comments.
plugins/platforms/virtual/virt_output.cpp
1 ↗(On Diff #29599)

same here, please call it virtual_output.cpp

plugins/platforms/virtual/virt_output.h
1 ↗(On Diff #29599)

please name this file virtual_output.h as your class is called VirtualOutput and the include guard is called KWIN_VIRTUAL_OUTPUT_H. virt_output reminds me too much of libvirt and who knows maybe we need to add code for libvirt integration in future.

plugins/platforms/virtual/virtual_backend.h
68–85

please move the implementation into the cpp file

This revision now requires changes to proceed.Mar 17 2018, 11:20 AM
romangg updated this revision to Diff 29902.EditedMar 19 2018, 11:07 AM
  • Rename virt_output files to virtual_output
  • setVirtualOutputs implementation in cpp
  • rebase on master
romangg marked 3 inline comments as done.Mar 19 2018, 11:10 AM
graesslin accepted this revision.Mar 19 2018, 4:16 PM
This revision is now accepted and ready to land.Mar 19 2018, 4:16 PM
This revision was automatically updated to reflect the committed changes.