diff options
| author | Niko Kiirala <niko@kiirala.com> | 2007-05-21 09:39:52 +0000 |
|---|---|---|
| committer | kiirala <kiirala@users.sourceforge.net> | 2007-05-21 09:39:52 +0000 |
| commit | 2ac98237319c51ceb2a25d5a4821ef6afc0beb6e (patch) | |
| tree | 8ff0e8ad21cae00d3ff85127285f6279d2872dfe /src/sp-filter-primitive.cpp | |
| parent | committed patch 1629798 (diff) | |
| download | inkscape-2ac98237319c51ceb2a25d5a4821ef6afc0beb6e.tar.gz inkscape-2ac98237319c51ceb2a25d5a4821ef6afc0beb6e.zip | |
Refactoring work for filter effects renderer initialization
(bzr r3035)
Diffstat (limited to 'src/sp-filter-primitive.cpp')
| -rw-r--r-- | src/sp-filter-primitive.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/sp-filter-primitive.cpp b/src/sp-filter-primitive.cpp index 7be694980..f799dbe54 100644 --- a/src/sp-filter-primitive.cpp +++ b/src/sp-filter-primitive.cpp @@ -7,8 +7,9 @@ /* * Authors: * Kees Cook <kees@outflux.net> + * Niko Kiirala <niko@kiirala.com> * - * Copyright (C) 2004 Kees Cook + * Copyright (C) 2004-2007 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ @@ -21,6 +22,7 @@ #include "sp-filter-primitive.h" #include "xml/repr.h" #include "sp-filter.h" +#include "display/nr-filter-primitive.h" /* FilterPrimitive base class */ @@ -69,6 +71,10 @@ sp_filter_primitive_class_init(SPFilterPrimitiveClass *klass) sp_object_class->write = sp_filter_primitive_write; sp_object_class->set = sp_filter_primitive_set; sp_object_class->update = sp_filter_primitive_update; + + /* This should never be called on this base class, but only on derived + * classes. */ + klass->build_renderer = NULL; } static void @@ -163,6 +169,16 @@ sp_filter_primitive_write(SPObject *object, Inkscape::XML::Node *repr, guint fla return repr; } +/* Common initialization for filter primitives */ +void sp_filter_primitive_renderer_common(SPFilterPrimitive *sp_prim, NR::FilterPrimitive *nr_prim) +{ + g_assert(sp_prim != NULL); + g_assert(nr_prim != NULL); + + /* TODO: place here code to handle input images, filter area etc. */ +} + + /* Local Variables: |
