Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpixmapcache.cpp File Reference

(ee956824db495c12f51dd0d864e009f0417464d5)

#include "qpixmapcache.h"
#include "qobject.h"
#include "qdebug.h"
#include "qpixmapcache_p.h"
#include "qthread.h"
#include "qcoreapplication.h"
#include "qpixmapcache.moc"
+ Include dependency graph for qpixmapcache.cpp:

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
 

Function Documentation

◆ cost()

static qsizetype cost ( const QPixmap & pixmap)
inlinestatic

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ q_QPixmapCache_keyHashSize()

int Q_AUTOTEST_EXPORT q_QPixmapCache_keyHashSize ( )

Definition at line 409 of file qpixmapcache.cpp.

◆ qt_pixmapcache_thread_test()

static bool qt_pixmapcache_thread_test ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_qpixmapcache_flush_detached_pixmaps()

Q_AUTOTEST_EXPORT void qt_qpixmapcache_flush_detached_pixmaps ( )

Definition at line 604 of file qpixmapcache.cpp.

References qt_pixmapcache_thread_test().

+ Here is the call graph for this function:

◆ qt_qpixmapcache_qpixmapcache_total_used()

Q_AUTOTEST_EXPORT int qt_qpixmapcache_qpixmapcache_total_used ( )

Definition at line 611 of file qpixmapcache.cpp.

References qt_pixmapcache_thread_test().

+ Here is the call graph for this function:

Variable Documentation

◆ cache_limit_default

const int cache_limit_default = 10240
static

Definition at line 59 of file qpixmapcache.cpp.