OSDN Git Service

Fix b/5392171 and b/5389281.
authorYuli Huang <yuli@google.com>
Tue, 11 Oct 2011 13:23:22 +0000 (21:23 +0800)
committerYuli Huang <yuli@google.com>
Wed, 12 Oct 2011 09:02:27 +0000 (17:02 +0800)
commiteb83d83d8ce6e5b7ff7a99a5da738f251bae0f21
treee59861d3121c827a68dd3c8ca801b31337bf2da5
parent26f894d2785b7e0ada5f86f45e7ed6f055829b46
Fix b/5392171 and b/5389281.

1. Fix b/5392171 by moving effect context creation into Filter to make
sure it'd be created when needed.
2. Revise the fix for b/5389281 by clearing surface background even
there's no photo.

Change-Id: I212a552291c7df28b75a909bf6560634ba061e9f
src/com/android/gallery3d/photoeditor/FilterStack.java
src/com/android/gallery3d/photoeditor/PhotoView.java
src/com/android/gallery3d/photoeditor/RendererUtils.java
src/com/android/gallery3d/photoeditor/filters/Filter.java