X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect_chain.h;fp=effect_chain.h;h=a544e833bf4bc80029c6f61a7276203aab5c8358;hb=ecab6f3b08bc0a995dd96542758031f1ba2c6a27;hp=6cd689d7c38f0b8386deb007d88ad1449a0f18cf;hpb=99d570aa1e5e72e6c2adcb8401b1451738e7dec2;p=movit diff --git a/effect_chain.h b/effect_chain.h index 6cd689d..a544e83 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -174,6 +174,12 @@ public: void replace_sender(Node *new_sender, Node *receiver); void insert_node_between(Node *sender, Node *middle, Node *receiver); + // Get the current resource pool assigned to this EffectChain. + // Primarily to let effects allocate textures as needed. + // Any resources you get from the pool must be returned to the pool + // no later than in the Effect's destructor. + ResourcePool *get_resource_pool() { return resource_pool; } + private: // Make sure the output rectangle is at least large enough to hold // the given input rectangle in both dimensions, and is of the