D8398: [drm] Implement changing of modes

Martin Flöser noreply at phabricator.kde.org
Sat Oct 21 13:20:18 UTC 2017


graesslin created this revision.
graesslin added reviewers: KWin, Plasma, subdiff, sebas.
Restricted Application added a project: KWin.
Restricted Application added subscribers: kwin, plasma-devel.

REVISION SUMMARY
  This change hooks up the bits for changing the mode when a request to
  change mode from kscreen is received. This includes:
  
  - setting new mode in DrmOutput
  - creating new buffers in SceneQPainter backend
  - creating new GbmSurface in SceneOpenGL backend
  
  Room for improvement:
  
  - detect whether the new mode works and go back to old one if it fails

TEST PLAN
  Started both a QPainter/OpenGL session. Used kcmshell5 kscreen
  to modify the resolution. Saw that it got applied, maximized a window to
  verify it's correct. Changed back to original resolution. Verified it looked
  good by maximizing a window.

REPOSITORY
  R108 KWin

BRANCH
  drm-mode-changes

REVISION DETAIL
  https://phabricator.kde.org/D8398

AFFECTED FILES
  plugins/platforms/drm/drm_output.cpp
  plugins/platforms/drm/drm_output.h
  plugins/platforms/drm/egl_gbm_backend.cpp
  plugins/platforms/drm/egl_gbm_backend.h
  plugins/platforms/drm/scene_qpainter_drm_backend.cpp

To: graesslin, #kwin, #plasma, subdiff, sebas
Cc: plasma-devel, kwin, bwowk, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20171021/2bd8f604/attachment.html>


More information about the Plasma-devel mailing list