diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-05-02 13:23:51 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-05-03 16:42:22 +0000 |
commit | 61bb8c49ec662adf1622cd0bf91de51a2305adb9 (patch) | |
tree | 5cf634a737be5436dbb317864377713a857f992c /src/location/declarativemaps/qdeclarativegeomap.cpp | |
parent | 22c4a09a40ffaf298b361b9b99c4166ca4ec60d3 (diff) | |
download | qtlocation-61bb8c49ec662adf1622cd0bf91de51a2305adb9.tar.gz |
Evaluate the visible region lazily in QGeoProjectionWebMercator
This change optimizes QGeoProjectionWebMercator::setupCamera, factoring
out the code that calculates the visible region, and replacing it
with a dirty flag.
The computation is deferred to the first time visibleRegion() gets
called.
This is done because the visible region is currently only used to render
some types of map items, meaning that in a multi layer setup, only few
layers might need it.
Change-Id: I5dd75969581513eb60e3cf5d6ba649349bf25378
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap.cpp')
0 files changed, 0 insertions, 0 deletions