diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-30 13:19:56 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-30 13:20:08 -0400 |
commit | 84de61804707100fdc859a9e4a5d46eb67ba0e7a (patch) | |
tree | d0c97911cb8201c7a5193ff02f37987f88a53884 /gtk2_ardour/au_pluginui.h | |
parent | 8b52b698104f336053f2228370139d821b7c43c1 (diff) |
use CFRunLoopTimer to check the effect of plugin redrawing, not a glib idle
Diffstat (limited to 'gtk2_ardour/au_pluginui.h')
-rw-r--r-- | gtk2_ardour/au_pluginui.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gtk2_ardour/au_pluginui.h b/gtk2_ardour/au_pluginui.h index 807d6b751a..d0dfac1ba9 100644 --- a/gtk2_ardour/au_pluginui.h +++ b/gtk2_ardour/au_pluginui.h @@ -96,7 +96,6 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox void lower_box_unmap (); void lower_box_size_request (GtkRequisition*); void lower_box_size_allocate (Gtk::Allocation&); - bool lower_box_expose (GdkEventExpose*); void cocoa_view_resized (); void on_realize (); @@ -165,10 +164,17 @@ class AUPluginUI : public PlugUIBase, public Gtk::VBox bool plugin_class_valid (Class pluginClass); - static bool idle_meter(); - static int64_t last_idle; - static bool idle_meter_needed; - int64_t expose_cnt; + friend void au_cf_timer_callback (CFRunLoopTimerRef timer, void* info); + static CFRunLoopTimerRef cf_timer; + static void cf_timer_callback (); + static int64_t last_timer; + static bool timer_needed; + static uint64_t timer_callbacks; + static uint64_t timer_out_of_range; + + public: + static void start_cf_timer (); + static void stop_cf_timer (); }; #endif /* __gtk2_ardour_auplugin_ui_h__ */ |