Take into account scaling in blitFromFrameBuffer
ClosedPublic

Authored by davidedmundson on Mar 6 2017, 12:35 AM.

Details

Summary

This method already translates to s_virtualScreenGeometry as the source
co-ordinates are in compostior space we should take scaling into account here too.

This method already supports resizing if source and target sizes do not match.
Calling funcitons can either double the size of the target if they want native resolution
or leave as-is if they want the result in standard DPI.

This implements scaling in the screenshot, magnifier and simple blur effect.

Test Plan

Tested screenshot effect using spectacle.
I hit an (unrelated, was reproducible on master) crash whilst using this, so it is not fully tested

Ran magnifier effect manually

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.
davidedmundson created this revision.Mar 6 2017, 12:35 AM
Restricted Application added a project: KWin. · View Herald TranscriptMar 6 2017, 12:35 AM
Restricted Application added subscribers: KWin, kwin, plasma-devel. · View Herald Transcript
graesslin accepted this revision.Mar 10 2017, 3:08 PM
This revision is now accepted and ready to land.Mar 10 2017, 3:08 PM
This revision was automatically updated to reflect the committed changes.