![]() |
Qt 6.x
The Qt SDK
|
#include "qpixmapcache.h"
#include "qobject.h"
#include "qdebug.h"
#include "qpixmapcache_p.h"
#include "qthread.h"
#include "qcoreapplication.h"
#include "qpixmapcache.moc"
Go to the source code of this file.
Classes | |
class | QPMCache |
Functions | |
static qsizetype | cost (const QPixmap &pixmap) |
static bool | qt_pixmapcache_thread_test () |
int Q_AUTOTEST_EXPORT | q_QPixmapCache_keyHashSize () |
Q_AUTOTEST_EXPORT void | qt_qpixmapcache_flush_detached_pixmaps () |
Q_AUTOTEST_EXPORT int | qt_qpixmapcache_qpixmapcache_total_used () |
Variables | |
static const int | cache_limit_default = 10240 |
Definition at line 61 of file qpixmapcache.cpp.
References pixmap, and qBound().
Referenced by QGeoFileTileCache::addToDiskCache(), QGeoFileTileCache::addToDiskCache(), QGeoFileTileCache::addToMemoryCache(), QGeoFileTileCache::addToTextureCache(), QAndroidStyle::AndroidStateDrawable::bestAndroidStateMatch(), QCache3Q< Key, T, EvPolicy >::insert(), QCache< Key, T >::insert(), QPixmapCache::insert(), QPMCache::insert(), QPixmapCache::insert(), QPMCache::insert(), and QOpenGLTextureUploader::textureImage().
int Q_AUTOTEST_EXPORT q_QPixmapCache_keyHashSize | ( | ) |
Definition at line 409 of file qpixmapcache.cpp.
|
inlinestatic |
Definition at line 71 of file qpixmapcache.cpp.
References QThread::currentThread(), QCoreApplication::instance(), and Q_LIKELY.
Referenced by QPixmapCache::cacheLimit(), QPixmapCache::clear(), QPixmapCache::find(), QPixmapCache::find(), QPixmapCache::insert(), QPixmapCache::insert(), qt_qpixmapcache_flush_detached_pixmaps(), qt_qpixmapcache_qpixmapcache_total_used(), QPixmapCache::remove(), QPixmapCache::remove(), and QPixmapCache::setCacheLimit().
Q_AUTOTEST_EXPORT void qt_qpixmapcache_flush_detached_pixmaps | ( | ) |
Definition at line 604 of file qpixmapcache.cpp.
References qt_pixmapcache_thread_test().
Q_AUTOTEST_EXPORT int qt_qpixmapcache_qpixmapcache_total_used | ( | ) |
Definition at line 611 of file qpixmapcache.cpp.
References qt_pixmapcache_thread_test().
|
static |
Definition at line 59 of file qpixmapcache.cpp.