summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/photoeditor/filters/FlipFilter.java')
-rw-r--r--src/com/android/gallery3d/photoeditor/filters/FlipFilter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java b/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
index 184f590a3..7035912a5 100644
--- a/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
+++ b/src/com/android/gallery3d/photoeditor/filters/FlipFilter.java
@@ -17,7 +17,6 @@
package com.android.gallery3d.photoeditor.filters;
import android.media.effect.Effect;
-import android.media.effect.EffectContext;
import android.media.effect.EffectFactory;
import com.android.gallery3d.photoeditor.Photo;
@@ -37,8 +36,8 @@ public class FlipFilter extends Filter {
}
@Override
- public void process(EffectContext context, Photo src, Photo dst) {
- Effect effect = getEffect(context, EffectFactory.EFFECT_FLIP);
+ public void process(Photo src, Photo dst) {
+ Effect effect = getEffect(EffectFactory.EFFECT_FLIP);
effect.setParameter("horizontal", flipHorizontal);
effect.setParameter("vertical", flipVertical);
effect.apply(src.texture(), src.width(), src.height(), dst.texture());