summaryrefslogtreecommitdiffstats
path: root/media/mca/effect
diff options
context:
space:
mode:
authorMike Dodd <mdodd@google.com>2012-09-06 17:00:38 -0700
committerMike Dodd <mdodd@google.com>2012-09-06 17:00:38 -0700
commitf330d19a17ebdaabdad4e97222f65e7b580abe76 (patch)
tree6166279ae9a895ace849fdd96a74b66758f57355 /media/mca/effect
parentfb3ec448f1208d75edebff0e93fa97a8913ff29e (diff)
downloadframeworks_base-f330d19a17ebdaabdad4e97222f65e7b580abe76.zip
frameworks_base-f330d19a17ebdaabdad4e97222f65e7b580abe76.tar.gz
frameworks_base-f330d19a17ebdaabdad4e97222f65e7b580abe76.tar.bz2
Add context support to backdropper filter.
Part of b/7028438 Change-Id: Idcae38b452abc847c7b869a5568d1c5d831411b7
Diffstat (limited to 'media/mca/effect')
-rw-r--r--media/mca/effect/java/android/media/effect/effects/BackDropperEffect.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/mca/effect/java/android/media/effect/effects/BackDropperEffect.java b/media/mca/effect/java/android/media/effect/effects/BackDropperEffect.java
index d5c7aaa..f977e60 100644
--- a/media/mca/effect/java/android/media/effect/effects/BackDropperEffect.java
+++ b/media/mca/effect/java/android/media/effect/effects/BackDropperEffect.java
@@ -91,6 +91,9 @@ public class BackDropperEffect extends FilterGraphEffect {
if (parameterKey.equals("source")) {
Filter background = mGraph.getFilter("background");
background.setInputValue("sourceUrl", value);
+ } else if (parameterKey.equals("context")) {
+ Filter background = mGraph.getFilter("background");
+ background.setInputValue("context", value);
}
}