X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=358deedbb5e34064e4d2c52119db4c4c30413dca;hp=6452d14952dbbda0a67fe879e45c4b96cd86d37f;hb=bff07c51f937a4fdf005d31ef7e064467db67511;hpb=983fe15061b6e199877577b363a9f2fa102cf107 diff --git a/effect_chain.h b/effect_chain.h index 6452d14..358deed 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -16,8 +16,12 @@ // but if so, the threads' contexts need to be set up to share resources, since // the EffectChain holds textures and other OpenGL objects that are tied to the // context. +// +// Memory management (only relevant if you use multiple contexts): +// See corresponding comment in resource_pool.h. This holds even if you don't +// allocate your own ResourcePool, but let EffectChain hold its own. -#include +#include #include #include #include @@ -79,6 +83,7 @@ private: Colorspace output_color_space; GammaCurve output_gamma_curve; AlphaType output_alpha_type; + bool needs_mipmaps; // Directly or indirectly. friend class EffectChain; };