46 static void insertTile(
const QUrl &url,
const QImage &image );
52 static bool tile(
const QUrl &url, QImage &image );
61 static QCache<QUrl, QImage> sTileCache;
63 static QMutex sTileCacheMutex;
A simple tile cache implementation.
static bool tile(const QUrl &url, QImage &image)
Try to access a tile and load it into "image" argument.
static int totalCost()
how many tiles are stored in the in-memory cache
static void insertTile(const QUrl &url, const QImage &image)
Add a tile image with given URL to the cache.
static int maxCost()
how many tiles can be stored in the in-memory cache