<table><tr><td style="">bshah created this revision.<br />bshah added reviewers: Plasma, graesslin.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: kwin, plasma-devel.
</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/D3686" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>HWcomposer version 1.4 introduced setPowerMode, which replaces the<br />
blank(). This adds support for it. There are various code paths<br />
possible,</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">If KWin is built against hwcomposer 1.3 headers, then setPowerMode</li>
</ul>
<p>code is not compiled in, and it will use blank to turn display off.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">If KWin is built against hwcomposer 1.4 headers, it will have</li>
</ul>
<p>setPowerMode code path compiled in. It will be used only on devices with<br />
1.4 and 1.5 version of hwcomposer.</p>
<p>This is slightly insane, because Android can report hwcomposer 1.5 even<br />
when headers are of 1.4 version..</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested this on Nexus 5.X which reports 1.5 version of hwcomposer</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>support-hwc-1.5</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3686" rel="noreferrer">https://phabricator.kde.org/D3686</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/platforms/hwcomposer/hwcomposer_backend.cpp<br />
plugins/platforms/hwcomposer/hwcomposer_backend.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>bshah, Plasma, graesslin<br /><strong>Cc: </strong>plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas<br /></div>