X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=blur_effect.h;h=b543ebc5a52f627625b5579766edd91684fcffec;hp=6224ac36c5110b7b892cfd4d86fa8f7e526576b9;hb=81f33379cabb7cf8b47f2d2bd3892f853afc89ab;hpb=39b6975420669958ed9f4013440aea415134a902 diff --git a/blur_effect.h b/blur_effect.h index 6224ac3..b543ebc 100644 --- a/blur_effect.h +++ b/blur_effect.h @@ -33,12 +33,6 @@ public: std::string effect_type_id() const override { return "BlurEffect"; } - // We want this for the same reason as ResizeEffect; we could end up scaling - // down quite a lot. - bool needs_texture_bounce() const override { return true; } - bool needs_mipmaps() const override { return true; } - bool needs_srgb_primaries() const override { return false; } - void inform_input_size(unsigned input_num, unsigned width, unsigned height) override; std::string output_fragment_shader() override { @@ -71,8 +65,10 @@ public: std::string output_fragment_shader() override; + // We want this for the same reason as ResizeEffect; we could end up scaling + // down quite a lot. bool needs_texture_bounce() const override { return true; } - bool needs_mipmaps() const override { return true; } + MipmapRequirements needs_mipmaps() const override { return NEEDS_MIPMAPS; } bool needs_srgb_primaries() const override { return false; } AlphaHandling alpha_handling() const override { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }