summaryrefslogtreecommitdiffstats
path: root/src/JackDbusDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-09 23:59:01 +0000
committerDavid Robillard <d@drobilla.net>2009-05-09 23:59:01 +0000
commit5465c4af1c7b18cba31fa3d15ab1741f2613e9d4 (patch)
treea7331689f196cef1e979afa313ba60122fa64a97 /src/JackDbusDriver.cpp
parent43e673a183844709ecd41e08d97f96d9228a544c (diff)
downloadpatchage-5465c4af1c7b18cba31fa3d15ab1741f2613e9d4.tar.gz
patchage-5465c4af1c7b18cba31fa3d15ab1741f2613e9d4.tar.bz2
patchage-5465c4af1c7b18cba31fa3d15ab1741f2613e9d4.zip
Dramatically reduce resize overhead everywhere.
Make alsa driver create individual ports and do minimal work vs naive full refresh when anything changes. Fixes ticket #355. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1967 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDbusDriver.cpp')
-rw-r--r--src/JackDbusDriver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/JackDbusDriver.cpp b/src/JackDbusDriver.cpp
index 0d0cf11..feb1923 100644
--- a/src/JackDbusDriver.cpp
+++ b/src/JackDbusDriver.cpp
@@ -111,7 +111,7 @@ JackDriver::destroy_all_ports()
if (module->ports().empty())
_app->canvas()->remove_item(module);
else
- module->resize();
+ _app->enqueue_resize();
}
}
@@ -555,7 +555,7 @@ JackDriver::add_port(
is_input,
_app->state_manager()->get_port_color(type))));
- module->resize();
+ _app->enqueue_resize(module);
}
@@ -620,7 +620,7 @@ JackDriver::remove_port(
_app->canvas()->remove_item(module);
module.reset();
} else {
- module->resize();
+ _app->enqueue_resize(module);
}
if (_app->canvas()->items().empty()) {