Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_updater_context.h
Context not available. | |||||
29 | #include "kis_lock_free_lod_counter.h" | 29 | #include "kis_lock_free_lod_counter.h" | ||
---|---|---|---|---|---|
30 | 30 | | |||
31 | #include "KisUpdaterContextSnapshotEx.h" | 31 | #include "KisUpdaterContextSnapshotEx.h" | ||
32 | #include "kis_update_scheduler.h" | ||||
32 | 33 | | |||
33 | class KisUpdateJobItem; | 34 | class KisUpdateJobItem; | ||
34 | class KisSpontaneousJob; | 35 | class KisSpontaneousJob; | ||
Context not available. | |||||
138 | */ | 139 | */ | ||
139 | int threadsLimit() const; | 140 | int threadsLimit() const; | ||
140 | 141 | | |||
142 | void continueUpdate(const QRect& rc); | ||||
143 | void doSomeUsefulWork(); | ||||
144 | void jobFinished(); | ||||
141 | 145 | | |||
142 | Q_SIGNALS: | 146 | friend class KisUpdateJobItem; | ||
143 | void sigContinueUpdate(const QRect& rc); | | |||
144 | void sigDoSomeUsefulWork(); | | |||
145 | void sigSpareThreadAppeared(); | | |||
146 | | ||||
147 | protected Q_SLOTS: | | |||
148 | void slotJobFinished(); | | |||
149 | 147 | | |||
150 | protected: | 148 | protected: | ||
151 | static bool walkerIntersectsJob(KisBaseRectsWalkerSP walker, | 149 | static bool walkerIntersectsJob(KisBaseRectsWalkerSP walker, | ||
Context not available. | |||||
165 | QVector<KisUpdateJobItem*> m_jobs; | 163 | QVector<KisUpdateJobItem*> m_jobs; | ||
166 | QThreadPool m_threadPool; | 164 | QThreadPool m_threadPool; | ||
167 | KisLockFreeLodCounter m_lodCounter; | 165 | KisLockFreeLodCounter m_lodCounter; | ||
166 | KisUpdateScheduler *m_scheduler; | ||||
168 | }; | 167 | }; | ||
169 | 168 | | |||
170 | class KRITAIMAGE_EXPORT KisTestableUpdaterContext : public KisUpdaterContext | 169 | class KRITAIMAGE_EXPORT KisTestableUpdaterContext : public KisUpdaterContext | ||
Context not available. | |||||
186 | 185 | | |||
187 | const QVector<KisUpdateJobItem*> getJobs(); | 186 | const QVector<KisUpdateJobItem*> getJobs(); | ||
188 | void clear(); | 187 | void clear(); | ||
188 | | ||||
189 | friend class KisUpdateJobItem; | ||||
189 | }; | 190 | }; | ||
190 | 191 | | |||
191 | 192 | | |||
Context not available. |