diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-02-04 12:41:17 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-02-13 18:27:17 +0000 |
commit | 9bf8cc1f185d3d39446a6911f4a694f274bb94c3 (patch) | |
tree | 5d05278dde15055624b37c7b51b37dd5d9a42f8a /src/gui/kernel/qplatformwindow.cpp | |
parent | 1b46872cde7fb50652f55bfe1e286e6af5124200 (diff) |
qimage_conversions.cpp: keep shared copies of gray and alpha color tables
Since QVector is implicitly shared, don't re-generate the same
two color tables all over again, but create them once and keep
them around in a Q_GLOBAL_STATIC.
Change-Id: I9a8d32021d8cc327264f2818a23beaae67fe3ee8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/gui/kernel/qplatformwindow.cpp')
0 files changed, 0 insertions, 0 deletions