OSDN Git Service

Update for compatibility with Effects API naming change.
authorMarius Renn <renn@google.com>
Thu, 15 Sep 2011 00:10:01 +0000 (17:10 -0700)
committerMarius Renn <renn@google.com>
Thu, 15 Sep 2011 00:10:01 +0000 (17:10 -0700)
Part of bugfix 5287103.

NOTE: This will fix the build, but temporarily break the Doodle effect
on the photo editor. Will check in fixes later.

Change-Id: I4a0e1696965c296ac9388c2ee9c49c0bdcaaf5a1

src/com/android/gallery3d/photoeditor/filters/DoodleFilter.java

index 3c4bbf7..b40f458 100644 (file)
@@ -81,7 +81,7 @@ public class DoodleFilter extends Filter {
             canvas.drawPath(drawingPath, paint);
         }
 
-        Effect effect = getEffect(context, EffectFactory.EFFECT_DOODLE);
+        Effect effect = getEffect(context, EffectFactory.EFFECT_BITMAPOVERLAY);
         effect.setParameter("doodle", bitmap);
         effect.apply(src.texture(), src.width(), src.height(), dst.texture());
     }