mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-12-06 08:13:40 -10:00
Utilize executor multi-output capabilities in runtime (#5084)
* Free executor nodes once no output reaches them, and let an export keep its output instead of blocking the runtime * Answer an export on a channel of its own, so the viewport's answers stay in order * Render a copy's SVG as an export of the copied layers' own network * Record in the executor which paths' types changed, to be taken with take_type_changes * Prepare every network in the node graph executor, and send the runtime the thumbnail sources instead of the previews and layers
This commit is contained in:
1 parent
d5fdb12320
commit
27cded81af
17 files changed
+1010
-471
No files matched your search
@@ -552,7 +552,7 @@ mod destructure_tests {
|
||||
fn assert_execution_result(network: NodeNetwork, expected: TaggedValue) {
|
||||
let proto_network = Compiler {}.compile_single(network).expect("Compilation should succeed").network;
|
||||
let mut executor = DynamicExecutor::default();
|
||||
let (output, _) = executor.update(proto_network).expect("The executor should type check and build");
|
||||
let output = executor.insert(proto_network).expect("The executor should type check and build");
|
||||
|
||||
let context: core_types::Context = None;
|
||||
let result = executor.tree().eval_tagged_value(output.node(), &context).expect("Execution should succeed");
|
||||
@@ -932,7 +932,7 @@ mod tests {
|
||||
|
||||
let proto_network = Compiler {}.compile_single(network).unwrap().network;
|
||||
let mut executor = DynamicExecutor::default();
|
||||
let (output, _) = executor.update(proto_network).unwrap();
|
||||
let output = executor.insert(proto_network).unwrap();
|
||||
let context: core_types::Context = None;
|
||||
let Ok(core_types::Poll::Fallback(boxed)) = executor.execute(&output, context) else {
|
||||
panic!("The color lookup should evaluate with an error");
|
||||
|
||||
Reference in new issue
Block a user