changeset 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 05c41701dc6c
children 1b3996a86cfa
files layer/SpectrogramLayer.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);