Cache coordinate projections in map items
This patch caches the result of geoToMapProjection() for the coordinates
of the map items, regenerating this data only upon coordinate changes.
This allows avoiding to perform a (mercator) projection basically
every time the item has to be drawn, and instead do only the wrapping
around the camera center and the projection to screen
Task-number: QTBUG-59479
Change-Id: Iea5ec04f360d2fe7495cd9c1dd278e83200e0f8d
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| commit | ec1033a1cc24305025f9397ff29b6562a3187eb8 |
| parent | 172cff4678d26883b822c5486f1da7f33f760575 |
| author | Paolo Angelelli <paolo.angelelli@qt.io> |
| committer | Paolo Angelelli <paolo.angelelli@qt.io> |
| commit time | Wed, 22 Mar 2017 11:13:38 +0000 |
- M src/location/declarativemaps/qdeclarativecirclemapitem.cpp
- M src/location/declarativemaps/qdeclarativecirclemapitem_p.h
- M src/location/declarativemaps/qdeclarativepolygonmapitem.cpp
- M src/location/declarativemaps/qdeclarativepolygonmapitem_p.h
- M src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
- M src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
- M src/location/declarativemaps/qdeclarativerectanglemapitem.cpp
- M src/location/declarativemaps/qdeclarativerectanglemapitem_p.h