<table><tr><td style="">romangg created this revision.<br />romangg added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />romangg requested review of this revision.
</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/D23545">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This lifts the enablement code for outputs from the DRM backend to Platform<br />
allowing other Wayland backends in the future to use this interface as well.</p>
<p>To do that we also create some helper functions on Platform level and have to<br />
spill some KWayland classes into AbstractOutput what motivates a further split<br />
of Platform into a Wayland child class like for AbstractOutput.</p>
<p>This is just a port. There are some inconsistencies with the current logic and<br />
in contrast to before the image of a disabled output is not cleared. I assume<br />
this is not an error in the porting but was before rather accidentally since<br />
there was no actual modeset requested after disabling.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Disabled and enabled an output in DRM session.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>platformOutputEnablement</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23545">https://phabricator.kde.org/D23545</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>abstract_output.cpp<br />
abstract_output.h<br />
abstract_wayland_output.cpp<br />
abstract_wayland_output.h<br />
platform.cpp<br />
platform.h<br />
plugins/platforms/drm/drm_backend.cpp<br />
plugins/platforms/drm/drm_backend.h<br />
plugins/platforms/drm/drm_output.h<br />
wayland_server.cpp</div></div></div><br /><div><strong>To: </strong>romangg, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>