Qt 4.8
|
#include <qgl_p.h>
Public Functions | |
QGLTexture * | getTexture (QGLContext *ctx, qint64 key) |
void | insert (QGLContext *ctx, qint64 key, QGLTexture *texture, int cost) |
int | maxCost () |
QGLTextureCache () | |
void | remove (qint64 key) |
bool | remove (QGLContext *ctx, GLuint textureId) |
void | removeContextTextures (QGLContext *ctx) |
void | setMaxCost (int newMax) |
int | size () |
~QGLTextureCache () | |
Static Public Functions | |
static void | cleanupBeforePixmapDestruction (QPixmapData *pixmap) |
static void | cleanupTexturesForCacheKey (qint64 cacheKey) |
static void | cleanupTexturesForPixampData (QPixmapData *pixmap) |
static QGLTextureCache * | instance () |
Properties | |
QCache< QGLTextureCacheKey, QGLTexture > | m_cache |
QReadWriteLock | m_lock |
QGLTextureCache::QGLTextureCache | ( | ) |
Definition at line 1907 of file qgl.cpp.
QGLTextureCache::~QGLTextureCache | ( | ) |
Definition at line 1915 of file qgl.cpp.
|
static |
Definition at line 1982 of file qgl.cpp.
|
static |
|
static |
Definition at line 1977 of file qgl.cpp.
|
inline |
Definition at line 697 of file qgl_p.h.
void QGLTextureCache::insert | ( | QGLContext * | ctx, |
qint64 | key, | ||
QGLTexture * | texture, | ||
int | cost | ||
) |
Definition at line 1922 of file qgl.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
|
static |
Definition at line 1995 of file qgl.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap(), QGLTexturePool::hibernate(), QX11GLSharedContexts::QX11GLSharedContexts(), and QGLTexturePool::reclaimSpace().
|
inline |
Definition at line 691 of file qgl_p.h.
void QGLTextureCache::remove | ( | qint64 | key | ) |
Definition at line 1929 of file qgl.cpp.
Referenced by QGLTexturePool::hibernate(), and QGLTexturePool::reclaimSpace().
bool QGLTextureCache::remove | ( | QGLContext * | ctx, |
GLuint | textureId | ||
) |
Definition at line 1941 of file qgl.cpp.
void QGLTextureCache::removeContextTextures | ( | QGLContext * | ctx | ) |
Definition at line 1956 of file qgl.cpp.
|
inline |
Definition at line 685 of file qgl_p.h.
|
inline |
Definition at line 680 of file qgl_p.h.
|
private |
|
private |