summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeofiletilecache_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-11-17 16:33:16 +0100
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-11-23 14:05:20 +0000
commit7c022af015cbd281521674d20847b619e12e5aaf (patch)
treeed708b547541fec2c7f7b0dfe37cb32f7f33afd7 /src/location/maps/qgeofiletilecache_p.h
parent65afb397635191666eb889364260edf0d8cd9024 (diff)
downloadqtlocation-7c022af015cbd281521674d20847b619e12e5aaf.tar.gz
Avoid extra QPixmap convertion when tile fetched
Initialize QGeoTileTexture with QImage instead of converting from QPixmap Change-Id: I69dddda385ebc9ce63cb0dd68fee3d3fa6eed73f Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeofiletilecache_p.h')
-rw-r--r--src/location/maps/qgeofiletilecache_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeofiletilecache_p.h b/src/location/maps/qgeofiletilecache_p.h
index 6bd1ad2b..8afb4c8d 100644
--- a/src/location/maps/qgeofiletilecache_p.h
+++ b/src/location/maps/qgeofiletilecache_p.h
@@ -135,7 +135,7 @@ private:
QSharedPointer<QGeoCachedTileDisk> addToDiskCache(const QGeoTileSpec &spec, const QString &filename);
QSharedPointer<QGeoCachedTileMemory> addToMemoryCache(const QGeoTileSpec &spec, const QByteArray &bytes, const QString &format);
- QSharedPointer<QGeoTileTexture> addToTextureCache(const QGeoTileSpec &spec, const QPixmap &pixmap);
+ QSharedPointer<QGeoTileTexture> addToTextureCache(const QGeoTileSpec &spec, const QImage &image);
static QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, const QString &directory);
static QGeoTileSpec filenameToTileSpec(const QString &filename);