| 29 | } |
| 30 | |
| 31 | void PrefetchThread::FOVChanged(MultiResolutionImage* img, const QRectF& FOV, const unsigned int level) |
| 32 | { |
| 33 | QMutexLocker locker(&_mutex); |
| 34 | |
| 35 | _img = img; |
| 36 | _level = level; |
| 37 | _FOV = FOV; |
| 38 | |
| 39 | if (!isRunning()) { |
| 40 | start(HighPriority); |
| 41 | } else { |
| 42 | _restart = true; |
| 43 | _condition.wakeOne(); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // Fetch threads based on the current FOV and level; prefetch will cache one level up and one level down of the |
| 48 | // current FOV (taking into account the downsampling) and tiles outside the FOV with the same size of the FOV in |
nothing calls this directly
no outgoing calls
no test coverage detected