X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect.h;h=a7d426c723981bc11e10006fa9d44d6b3f5d8db5;hp=4f740f3cec0015910b4977642b1467570751c5e6;hb=18fdebc534adc6b7a4c36b290b01d598bcb671bc;hpb=6602e2b9d5e5a44c0f075fe083ecc26feb10c173 diff --git a/effect.h b/effect.h index 4f740f3..a7d426c 100644 --- a/effect.h +++ b/effect.h @@ -196,6 +196,12 @@ public: // if you have several, they will be INPUT1(), INPUT2(), and so on. virtual unsigned num_inputs() const { return 1; } + // Inform the effect that it has been just added to the EffectChain. + // The primary use for this is to store the ResourcePool uesd by + // the chain; for modifications to it, rewrite_graph() below + // is probably a better fit. + virtual void inform_added(EffectChain *chain) {} + // Let the effect rewrite the effect chain as it sees fit. // Most effects won't need to do this, but this is very useful // if you have an effect that consists of multiple sub-effects