Mercurial > hg > svgui
diff layer/SpectrogramLayer.h @ 94:c7ade7ea3cfe
* It turns out we can be more efficient in the spectrogram repaints by
marking the spectrogram layer as non-scrollable, and using the spectrogram
cache alone instead of both spectrogram and view caches.
author | Chris Cannam |
---|---|
date | Tue, 09 May 2006 12:43:55 +0000 |
parents | 23d1e37bbfb4 |
children | 1b3996a86cfa |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.h Tue May 09 12:13:35 2006 +0000 +++ b/layer/SpectrogramLayer.h Tue May 09 12:43:55 2006 +0000 @@ -193,6 +193,8 @@ virtual void setLayerDormant(const View *v, bool dormant); + virtual bool isLayerScrollable(const View *v) const { return false; } + protected slots: void cacheInvalid(); void cacheInvalid(size_t startFrame, size_t endFrame);