waveview is the only type of canvas item that needs prepare for render

Also, virtual keyword in derived classes is redundant
This commit is contained in:
Paul Davis 2025-07-29 11:03:32 -06:00
parent 6c499b180b
commit 0b0dde46e0

View file

@ -75,9 +75,10 @@ public:
WaveView (Item*, std::shared_ptr<ARDOUR::AudioRegion>);
~WaveView ();
virtual void prepare_for_render (ArdourCanvas::Rect const& window_area) const;
void prepare_for_render (ArdourCanvas::Rect const& window_area) const;
bool needs_prepare_for_render () const { return true; }
virtual void render (ArdourCanvas::Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
void render (ArdourCanvas::Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
void compute_bounding_box () const;