Avoid deep copy of image data when getting pixmaps in SNIs

Authored by davidedmundson on May 5 2017, 8:48 AM.

Description

Avoid deep copy of image data when getting pixmaps in SNIs

Summary:
We get the data as a QByteArray we can just ref the original data,
rather than doing a deep copy of the data.

Might save a few cycles when we have an SNI animating.

Test Plan:
Ran an app that I know uses xembedsniproxy which always sends data as an
image
Still had an icon in the system tray as before

Reviewers: Plasma, markg

Reviewed By: markg

Subscribers: markg, plasma-devel

Tags: Plasma

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

Details

Committed
davidedmundsonMay 5 2017, 8:57 AM
Reviewer
markg
Differential Revision
D5670: Avoid deep copy of image data when getting pixmaps in SNIs
Parents
R120:1a5ae1d37591: Merge branch 'Plasma/5.9'
Branches
Unknown
Tags
Unknown