D5670: Avoid deep copy of image data when getting pixmaps in SNIs

David Edmundson noreply at phabricator.kde.org
Sun Apr 30 22:16:20 UTC 2017


davidedmundson created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION 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

REPOSITORY
  R120 Plasma Workspace

BRANCH
  master

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

AFFECTED FILES
  dataengines/statusnotifieritem/statusnotifieritemsource.cpp

To: davidedmundson, #plasma
Cc: plasma-devel, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170430/fd642817/attachment-0001.html>


More information about the Plasma-devel mailing list