Mercurial > hg > svgui
comparison layer/SpectrogramLayer.h @ 330:846746e4e865 spectrogram-cache-rejig
* cache bits & bobs (wholly broken at the moment)
author | Chris Cannam |
---|---|
date | Fri, 16 Nov 2007 17:15:30 +0000 |
parents | bbc9666cb961 |
children | 6440e280122e |
comparison
equal
deleted
inserted
replaced
329:bbc9666cb961 | 330:846746e4e865 |
---|---|
281 Palette m_palette; | 281 Palette m_palette; |
282 | 282 |
283 struct PixmapCache | 283 struct PixmapCache |
284 { | 284 { |
285 QMutex mutex; | 285 QMutex mutex; |
286 QImage pixmap; | 286 QImage *pixmap; |
287 QRect validArea; | 287 QRect validArea; |
288 long startFrame; | 288 long startFrame; |
289 size_t zoomLevel; | |
290 }; | 289 }; |
291 typedef std::map<const View *, PixmapCache *> ViewPixmapCache; | 290 typedef std::map<const View *, PixmapCache *> ViewPixmapCache; |
292 void invalidatePixmapCaches(); | 291 void invalidatePixmapCaches(); |
293 void invalidatePixmapCaches(size_t startFrame, size_t endFrame); | 292 void invalidatePixmapCaches(size_t startFrame, size_t endFrame); |
294 mutable ViewPixmapCache m_pixmapCaches; | 293 mutable ViewPixmapCache m_pixmapCaches; |