]> git.sesse.net Git - movit/blobdiff - effect.h
Use the ResourcePool to allocate RTT textures in EffectChain.
[movit] / effect.h
index 4f740f3cec0015910b4977642b1467570751c5e6..a7d426c723981bc11e10006fa9d44d6b3f5d8db5 100644 (file)
--- 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