mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
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:
parent
6c499b180b
commit
0b0dde46e0
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue