[Differential] [Request, 147 lines] D2046: [autotests] Add a new test case which can verify the rendering of QPainter Scene

graesslin (Martin Gräßlin) noreply at phabricator.kde.org
Wed Jun 29 17:32:35 UTC 2016


graesslin created this revision.
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added subscribers: kwin, plasma-devel.
Restricted Application added projects: Plasma on Wayland, KWin.

REVISION SUMMARY
  The idea behind this autotest is inspired by bug 356328 which produced
  incorrect rendering results. Also it's inspired by openQA which performs
  image reference comparisons.
  
  This test case tries to go further. It creates reference images which
  must match the rendering result exactly. So far the test case verifies
  the start condition - kwin started and one frame is rendered with default
  cursor in the middle of the screen. And it verifies the moving of the
  cursor without any windows shown. Whenever the cursor moves a repaint
  should be triggered and the old and new area should be properly
  repainted.
  
  To support this the test needs some minor changes in KWin:
  
  - Scene provides a frameRendered signal - needed for waiting on frame
  - Scene and SceneQPainter are exported
  - SceneQPainter provides access to it's Backend, so that we get to the backbuffer
  - ScriptedEffectLoader is exported for getting a list of all scripted effects - (we don't want fade to manipulate the rendering)

REPOSITORY
  rKWIN KWin

BRANCH
  autotest-qpainter-rendering

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

AFFECTED FILES
  autotests/integration/CMakeLists.txt
  autotests/integration/scene_qpainter_test.cpp
  effectloader.h
  scene.h
  scene_qpainter.cpp
  scene_qpainter.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: graesslin, #kwin, #plasma_on_wayland
Cc: plasma-devel, kwin, hardening, jensreuterberg, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160629/8734efd3/attachment-0001.html>


More information about the Plasma-devel mailing list