summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbsessionmanager.h
diff options
context:
space:
mode:
authorBłażej Szczygieł <spaz16@wp.pl>2018-03-03 16:23:33 +0100
committerBłażej Szczygieł <spaz16@wp.pl>2018-03-14 12:47:27 +0000
commita62f1d03560937a306c7586669a46cd9575e9464 (patch)
tree9c9de09595c9b843e79ce8e30b9f592d85dc8310 /src/plugins/platforms/xcb/qxcbsessionmanager.h
parent421cfd9492ec04f5432c81b6cad93ebe45601974 (diff)
xcb: Prevent shared memory allocation on every window resize
Allocate new shared memory only when window size grows or when window size is 2 times smaller than allocated memory size. This improves window resizing performance and also allows to free some memory if window becames much smaller. Change-Id: I3454cd3c6023eede8242d6b29038f4dd6638f9f1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbsessionmanager.h')
0 files changed, 0 insertions, 0 deletions