aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/sharedimage
Commit message (Collapse)AuthorAgeFilesLines
* init variables where they are declared when possible (clang-tidy)Shawn Rutledge2018-02-261-3/+1
| | | | | | | | clang-tidy -p compile_commands.json $file -checks='-*,modernize-use-default-member-init,readability-redundant-member-init' -config='{CheckOptions: [{key: modernize-use-default-member-init.UseAssignment, value: "1"}]}' -header-filter='qtdeclarative' -fix Change-Id: I705f3235ff129ba68b0d8dad54a083e29fcead5f Reviewed-by: Johan Helsing <johan.helsing@qt.io>
* use nullptr consistently (clang-tidy)Shawn Rutledge2018-02-261-1/+1
| | | | | | | | | | | | | From now on we prefer nullptr instead of 0 to clarify cases where we are assigning or testing a pointer rather than a numeric zero. Also, replaced cases where 0 was passed as Qt::KeyboardModifiers with Qt::NoModifier (clang-tidy replaced them with nullptr, which waas wrong, so it was just as well to make the tests more readable rather than to revert those lines). Change-Id: I4735d35e4d9f42db5216862ce091429eadc6e65d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Add a plugins.qmltypes for sharedimageUlf Hermann2018-02-081-0/+11
| | | | | | | | The plugin doesn't define any types, but we still want to have a description of it for tooling purposes. Change-Id: Ib5a5b021e5e79621da694993fe4bad8f6a130289 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Fix deprecation warningAllan Sandfeld Jensen2017-12-051-3/+6
| | | | | | | Use sizeInBytes instead of byteCount for huge QImage support. Change-Id: Iad1c61e68a88521d23ff9652ae0507f574b003b0 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Replace remaining Q_NULLPTR with nullptrKevin Funk2017-11-172-3/+3
| | | | | Change-Id: I28a32af7f1c306a3002d47025a842475f848c1a4 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Polish the shared image providerEirik Aavitsland2017-04-287-54/+46
| | | | | | | | | | | | | | | When the new shared memory image provider was added, some of the issues identified during review were postponed to be fixed during stabilization phase. This commit deals with - Replace the kludge for registering plugin version - Add autotest - Place plugin in labs - Use QT_CONFIG instead of QT_NO_xxx - Use the new extended image provider api, in order to use the scaled-size calculation from Quick Change-Id: I75c01c7565650fcf859411dde9520ee65b2b0c64 Reviewed-by: Christian Stromme <christian.stromme@qt.io>
* Add shared memory image providerEirik Aavitsland2017-01-307-0/+714
Adds functionality to save CPU memory when several processes use the same local image files. Example and autotest will be added during stabilization. Task-number: QTBUG-56279 Change-Id: Iabe1e42620c79adca4f61f3901da41d9d5a723df Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>