summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomap.cpp
diff options
context:
space:
mode:
authorThomas Lowe <thomas.lowe@nokia.com>2012-05-08 15:40:12 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-16 09:23:55 +0200
commitf9377591312f3c426e8d4bfa45f7554ad7e3e966 (patch)
tree3817480012dd575861dbf1c57d518af75af739e0 /src/location/maps/qgeomap.cpp
parent321e37cb2b04cf075b85399fd97ea77b25f371c1 (diff)
downloadqtlocation-f9377591312f3c426e8d4bfa45f7554ad7e3e966.tar.gz
Simple prefetch scheme
Prefetches larger set of tiles when camera is stopped QTBUG-25136 Prefetch implementation including zoom-level prefetching Two prefetching options- pan buffer, or pan buffer for two nearest zoom levels Code simplified by removing all three visibleTiles lists, so they can't go out of sync Textures not promoted up the cache if they aren't visible when retrieved from server Also: Prefetch on map initialize + optimisation This ensures that the prefetch is called at the end of initialisation Useful if the location is not already in disk cache. And makes no difference if it is already in disk cache. QTBUG-25786 Change-Id: Ife7c1d103f83695659f4534880268fa5afd8f7c7 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/location/maps/qgeomap.cpp')
-rw-r--r--src/location/maps/qgeomap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/location/maps/qgeomap.cpp b/src/location/maps/qgeomap.cpp
index 7001c7c7..ad81fd13 100644
--- a/src/location/maps/qgeomap.cpp
+++ b/src/location/maps/qgeomap.cpp
@@ -129,6 +129,11 @@ void QGeoMap::setCameraData(const QGeoCameraData &cameraData)
mapData_->setCameraData(cameraData);
}
+void QGeoMap::cameraStopped()
+{
+ mapData_->prefetchData();
+}
+
QGeoCameraData QGeoMap::cameraData() const
{
return mapData_->cameraData();