- assert(inputs.size() == 1);
- hpass->add_self_to_effect_chain(chain, inputs);
-
- std::vector<Effect *> vpass_inputs;
- vpass_inputs.push_back(hpass);
- vpass->add_self_to_effect_chain(chain, vpass_inputs);
+ Node *hpass_node = graph->add_node(hpass);
+ Node *vpass_node = graph->add_node(vpass);
+ graph->connect_nodes(hpass_node, vpass_node);
+ graph->replace_receiver(self, hpass_node);
+ graph->replace_sender(self, vpass_node);
+ self->disabled = true;
+}
+
+// We get this information forwarded from the first blur pass,
+// since we are not part of the chain ourselves.
+void BlurEffect::inform_input_size(unsigned input_num, unsigned width, unsigned height)
+{
+ assert(input_num == 0);
+ assert(width != 0);
+ assert(height != 0);
+ input_width = width;
+ input_height = height;
+ update_radius();