Add API to clear waveform cache

This commit is contained in:
Robin Gareus 2020-12-21 21:12:53 +01:00
parent acbccc1feb
commit b8e336b973
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 0 deletions

View File

@ -1324,6 +1324,12 @@ WaveView::set_global_logscaled (bool yn)
}
}
void
WaveView::clear_cache ()
{
WaveViewCache::get_instance()->clear_cache ();
}
samplecnt_t
WaveView::region_length() const
{

View File

@ -125,6 +125,7 @@ public:
static void set_global_logscaled (bool);
static void set_global_shape (Shape);
static void set_global_show_waveform_clipping (bool);
static void clear_cache ();
static double global_gradient_depth () { return _global_gradient_depth; }