diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-06 22:32:53 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-06 22:32:53 (GMT) |
commit | 8f27913d0558c96a781b81834396374318b70fd6 (patch) | |
tree | f148c4ee794096de5e4c9dc69a160ca731dfb511 /src/opengl | |
parent | 28206b2ec077396bc1fafffa4d85cab505f4409a (diff) | |
download | Qt-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