]> git.sesse.net Git - movit/blobdiff - dither_effect.h
Reduce the amount of arithmetic in the BlurEffect shader a bit.
[movit] / dither_effect.h
index 314390752cebde884f87f8d54db798f33f310cae..20fb025532d5fea4e92329c7733d06669354b39d 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _DITHER_EFFECT_H
-#define _DITHER_EFFECT_H 1
+#ifndef _MOVIT_DITHER_EFFECT_H
+#define _MOVIT_DITHER_EFFECT_H 1
 
 // Implements simple rectangular-PDF dither.
 //
@@ -48,6 +48,8 @@
 
 #include "effect.h"
 
+namespace movit {
+
 class DitherEffect : public Effect {
 private:
        // Should not be instantiated by end users;
@@ -75,7 +77,8 @@ private:
        int texture_width, texture_height;
 
        GLuint texnum;
-       bool need_texture_update;
 };
 
-#endif // !defined(_DITHER_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_DITHER_EFFECT_H)