]> git.sesse.net Git - movit/blobdiff - blur_effect.h
Release Movit 1.6.2.
[movit] / blur_effect.h
index 6224ac36c5110b7b892cfd4d86fa8f7e526576b9..b543ebc5a52f627625b5579766edd91684fcffec 100644 (file)
@@ -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; }