summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-12-06 22:32:53 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-12-06 22:32:53 (GMT)
commit8f27913d0558c96a781b81834396374318b70fd6 (patch)
treef148c4ee794096de5e4c9dc69a160ca731dfb511 /src/opengl
parent28206b2ec077396bc1fafffa4d85cab505f4409a (diff)
downloadQt-8f27913d0558c96a781b81834396374318b70fd6.zip
Qt-8f27913d0558c96a781b81834396374318b70fd6.tar.gz
Qt-8f27913d0558c96a781b81834396374318b70fd6.tar.bz2
Automatically destroy VG pixmaps when the last window surface goes away
Under S60, Qt will destroy the window surfaces of an application that goes into the background, which frees up EGL surface objects. But the VGImage's for pixmaps, and the EGLContext, were still using GPU memory. This change keeps track of the number of widgets / window surfaces that are in use and then calls hibernate() on all QVGPixmapData objects when it goes to zero. Once all the VGImage's are destroyed, the EGLContext should also be destroyed. Task-number: QT-2555 Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl')
0 files changed, 0 insertions, 0 deletions