From cabb72a8c874cf939150e02af804a1c781cd0b17 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 30 Oct 2007 19:28:31 +0000 Subject: r16677@shi: ted | 2007-10-17 19:31:04 -0700 Creating and adding interfaces for a document based cache that an effect can define. This removes the effect from having to know if the document has changed, and keep track of that. This allows them to optimize their performance when doing things like live effects. (bzr r3977) --- src/extension/implementation/script.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/extension/implementation/script.cpp') diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index bde0871ba..bec24f165 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -495,7 +495,8 @@ Script::prefs_output(Inkscape::Extension::Output *module) Gtk::Widget * Script::prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *view, - sigc::signal * changeSignal) + sigc::signal * changeSignal, + ImplementationDocumentCache * docCache) { SPDocument * current_document = view->doc(); @@ -681,7 +682,9 @@ Script::save(Inkscape::Extension::Output *module, point both should be full, and the second one is loaded. */ void -Script::effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *doc) +Script::effect(Inkscape::Extension::Effect *module, + Inkscape::UI::View::View *doc, + ImplementationDocumentCache * docCache) { std::list params; module->paramListString(params); -- cgit v1.2.3