#include <qvgimagepool_p.h>
|
virtual VGImage | createImageForPixmap (VGImageFormat format, VGint width, VGint height, VGbitfield allowedQuality, QVGPixmapData *data) |
|
virtual VGImage | createPermanentImage (VGImageFormat format, VGint width, VGint height, VGbitfield allowedQuality) |
|
virtual VGImage | createTemporaryImage (VGImageFormat format, VGint width, VGint height, VGbitfield allowedQuality, QVGPixmapData *keepData=0) |
|
virtual void | detachImage (QVGPixmapData *data) |
|
virtual void | hibernate () |
|
| QVGImagePool () |
|
virtual bool | reclaimSpace (VGImageFormat format, VGint width, VGint height, QVGPixmapData *data) |
|
virtual void | releaseImage (QVGPixmapData *data, VGImage image) |
|
virtual void | useImage (QVGPixmapData *data) |
|
virtual | ~QVGImagePool () |
|
Definition at line 64 of file qvgimagepool_p.h.
◆ QVGImagePool()
QVGImagePool::QVGImagePool |
( |
| ) |
|
◆ ~QVGImagePool()
QVGImagePool::~QVGImagePool |
( |
| ) |
|
|
virtual |
◆ createImageForPixmap()
VGImage QVGImagePool::createImageForPixmap |
( |
VGImageFormat |
format, |
|
|
VGint |
width, |
|
|
VGint |
height, |
|
|
VGbitfield |
allowedQuality, |
|
|
QVGPixmapData * |
data |
|
) |
| |
|
virtual |
Definition at line 97 of file qvgimagepool.cpp.
Referenced by QVGPixmapData::toVGImage().
104 image = vgCreateImage(
format, width, height, allowedQuality);
105 if (image != VG_INVALID_HANDLE) {
111 qWarning(
"QVGImagePool: cannot reclaim sufficient space for a %dx%d pixmap",
113 return VG_INVALID_HANDLE;
void moveToHeadOfLRU(QVGPixmapData *data)
Q_CORE_EXPORT void qWarning(const char *,...)
virtual bool reclaimSpace(VGImageFormat format, VGint width, VGint height, QVGPixmapData *data)
◆ createPermanentImage()
VGImage QVGImagePool::createPermanentImage |
( |
VGImageFormat |
format, |
|
|
VGint |
width, |
|
|
VGint |
height, |
|
|
VGbitfield |
allowedQuality |
|
) |
| |
|
virtual |
Definition at line 116 of file qvgimagepool.cpp.
Referenced by drawImageTiled(), toVGImage(), toVGImageSubRect(), toVGImageWithOpacity(), and toVGImageWithOpacitySubRect().
122 image = vgCreateImage(
format, width, height, allowedQuality);
123 if (image != VG_INVALID_HANDLE)
126 qWarning(
"QVGImagePool: cannot reclaim sufficient space for a %dx%d image",
128 return VG_INVALID_HANDLE;
Q_CORE_EXPORT void qWarning(const char *,...)
virtual bool reclaimSpace(VGImageFormat format, VGint width, VGint height, QVGPixmapData *data)
◆ createTemporaryImage()
VGImage QVGImagePool::createTemporaryImage |
( |
VGImageFormat |
format, |
|
|
VGint |
width, |
|
|
VGint |
height, |
|
|
VGbitfield |
allowedQuality, |
|
|
QVGPixmapData * |
keepData = 0 |
|
) |
| |
|
virtual |
Definition at line 81 of file qvgimagepool.cpp.
Referenced by QVGPixmapConvolutionFilter::draw(), QVGPixmapColorizeFilter::draw(), QVGPixmapDropShadowFilter::draw(), and QVGPixmapBlurFilter::draw().
88 image = vgCreateImage(
format, width, height, allowedQuality);
89 if (image != VG_INVALID_HANDLE)
92 qWarning(
"QVGImagePool: cannot reclaim sufficient space for a %dx%d temporary image",
94 return VG_INVALID_HANDLE;
Q_CORE_EXPORT void qWarning(const char *,...)
virtual bool reclaimSpace(VGImageFormat format, VGint width, VGint height, QVGPixmapData *data)
◆ detachImage()
◆ hibernate()
void QVGImagePool::hibernate |
( |
| ) |
|
|
virtual |
◆ instance()
Definition at line 67 of file qvgimagepool.cpp.
Referenced by QVGGraphicsSystem::createWindowSurface(), QVGPixmapData::destroyImages(), QVGPixmapData::detachImageFromPool(), QVGPixmapConvolutionFilter::draw(), QVGPixmapColorizeFilter::draw(), QVGPixmapDropShadowFilter::draw(), QVGPixmapBlurFilter::draw(), drawImageTiled(), qt_vg_hibernate_pixmaps(), QVGPixmapData::toVGImage(), toVGImage(), toVGImageSubRect(), toVGImageWithOpacity(), and toVGImageWithOpacitySubRect().
static QVGImagePool * qt_vg_image_pool
◆ moveToHeadOfLRU()
◆ pixmapLRU()
◆ reclaimSpace()
bool QVGImagePool::reclaimSpace |
( |
VGImageFormat |
format, |
|
|
VGint |
width, |
|
|
VGint |
height, |
|
|
QVGPixmapData * |
data |
|
) |
| |
|
virtual |
Definition at line 149 of file qvgimagepool.cpp.
Referenced by createImageForPixmap(), createPermanentImage(), and createTemporaryImage().
157 bool succeeded =
false;
158 bool wasInLRU =
false;
160 wasInLRU = data->
inLRU;
165 if (lrudata && lrudata != data) {
170 if (data && !wasInLRU)
void moveToHeadOfLRU(QVGPixmapData *data)
void removeFromLRU(QVGPixmapData *data)
QVGPixmapData * pixmapLRU()
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual void reclaimImages()
◆ releaseImage()
void QVGImagePool::releaseImage |
( |
QVGPixmapData * |
data, |
|
|
VGImage |
image |
|
) |
| |
|
virtual |
◆ removeFromLRU()
◆ setImagePool()
◆ useImage()
◆ d_ptr
The documentation for this class was generated from the following files: