diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-15 01:11:20 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-12-15 03:48:12 (GMT) |
commit | c5ae0ffd52ee3f2964404bf85dee55712fb6bd8c (patch) | |
tree | c84a17960411bafcc9d9431928c99a86c1aa909a /src/openvg/openvg.pro | |
parent | 36949134f109c72b8aba174ebf4d618f91a9f7ce (diff) | |
download | Qt-c5ae0ffd52ee3f2964404bf85dee55712fb6bd8c.zip Qt-c5ae0ffd52ee3f2964404bf85dee55712fb6bd8c.tar.gz Qt-c5ae0ffd52ee3f2964404bf85dee55712fb6bd8c.tar.bz2 |
Add an image allocation pool to the OpenVG paint engine
Some OpenVG GPU's have limitations on the amount of memory
available to create VGImage's. When the memory runs out,
vgCreateImage() will fail.
This change introduces QVGImagePool, which keeps track of all
QVGPixmapData image allocations and ejects least-recently-used
pixmaps when GPU memory is exhausted.
Task-number: QT-2554
Reviewed-by: trustme
Diffstat (limited to 'src/openvg/openvg.pro')
-rw-r--r-- | src/openvg/openvg.pro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvg/openvg.pro b/src/openvg/openvg.pro index 8927c4c..c8c9917 100644 --- a/src/openvg/openvg.pro +++ b/src/openvg/openvg.pro @@ -16,11 +16,13 @@ HEADERS += \ qpaintengine_vg_p.h \ qpixmapdata_vg_p.h \ qpixmapfilter_vg_p.h \ - qvgcompositionhelper_p.h + qvgcompositionhelper_p.h \ + qvgimagepool_p.h SOURCES += \ qpaintengine_vg.cpp \ qpixmapdata_vg.cpp \ - qpixmapfilter_vg.cpp + qpixmapfilter_vg.cpp \ + qvgimagepool.cpp contains(QT_CONFIG, egl) { HEADERS += \ |