Diffusion KWin 71600d0a027d

Take into account scaling in blitFromFrameBuffer

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

Description

Take into account scaling in blitFromFrameBuffer

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

Reviewers: Plasma

Subscribers: plasma-devel, kwin, KWin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D4951

Details

Committed
davidedmundsonApr 28 2017, 9:23 AM
Differential Revision
D4951: Take into account scaling in blitFromFrameBuffer
Parents
R108:24c9194f4c95: Scaling support in ColorPicker effect
Branches
Unknown
Tags
Unknown