Pass the current output geometry to ScreenPaintData
ClosedPublic

Authored by graesslin on Oct 14 2016, 1:52 PM.

Details

Summary

On Wayland per output rendering is performed and paintScreen is invoked
for every output. Some effects need the information which output is
currently being rendered as otherwise e.g. FBO access could fail.

This change adds the current output geometry to ScreenPaintData. On X11
(all outputs one geometry) this information is not set and a null rect
is returned. That way the effects can also easily check which rendering
mode is used.

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.
graesslin updated this revision to Diff 7395.Oct 14 2016, 1:52 PM
graesslin retitled this revision from to Pass the current output geometry to ScreenPaintData.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptOct 14 2016, 1:52 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Oct 16 2016, 3:02 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Oct 16 2016, 3:02 PM
This revision was automatically updated to reflect the committed changes.