]> git.sesse.net Git - movit/blobdiff - alpha_multiplication_effect.h
Make sure we do not send infinities to benchmarking textures.
[movit] / alpha_multiplication_effect.h
index c64f2dce050d075f4230d9beca8841f173fb7ce0..50333cbcf7b42f87b346c19a253f3d6babc6aa1d 100644 (file)
@@ -1,15 +1,22 @@
-#ifndef _ALPHA_MULTIPLICATION_EFFECT_H
-#define _ALPHA_MULTIPLICATION_EFFECT_H 1
+#ifndef _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H
+#define _MOVIT_ALPHA_MULTIPLICATION_EFFECT_H 1
 
 // Convert postmultiplied alpha to premultiplied alpha, simply by multiplying.
 
+#include <string>
+
 #include "effect.h"
 
+namespace movit {
+
 class AlphaMultiplicationEffect : public Effect {
 public:
        AlphaMultiplicationEffect() {}
-       virtual std::string effect_type_id() const { return "AlphaMultiplicationEffect"; }
-       std::string output_fragment_shader();
+       std::string effect_type_id() const override { return "AlphaMultiplicationEffect"; }
+       std::string output_fragment_shader() override;
+       bool strong_one_to_one_sampling() const override { return true; }
 };
 
-#endif // !defined(_ALPHA_MULTIPLICATION_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_ALPHA_MULTIPLICATION_EFFECT_H)