summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-08-20 15:46:41 -0700
committernicolasroard <nicolasroard@google.com>2013-08-20 15:46:41 -0700
commit1af7be9378009180f7873e177b430dbefae83edc (patch)
tree9d07e9b6e850e0839229429009f31944f163b5cf /src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
parent929d90ca51c2856c0a8cb5a812f0e70628bb71d7 (diff)
downloadandroid_packages_apps_Gallery2-1af7be9378009180f7873e177b430dbefae83edc.tar.gz
android_packages_apps_Gallery2-1af7be9378009180f7873e177b430dbefae83edc.tar.bz2
android_packages_apps_Gallery2-1af7be9378009180f7873e177b430dbefae83edc.zip
Revert to loading 8888 bitmaps
bug:10305385 Change-Id: I3c8ff6e848e79631f9b9e887244495b094e730a3
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
index 5695ef53e..9a494d823 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRS.java
@@ -184,7 +184,6 @@ public abstract class ImageFilterRS extends ImageFilter {
public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) {
Resources res = getEnvironment().getPipeline().getResources();
final BitmapFactory.Options options = new BitmapFactory.Options();
- options.inPreferredConfig = Bitmap.Config.ALPHA_8;
options.inSampleSize = inSampleSize;
Bitmap bitmap = BitmapFactory.decodeResource(
res,
@@ -197,7 +196,6 @@ public abstract class ImageFilterRS extends ImageFilter {
public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) {
Resources res = getEnvironment().getPipeline().getResources();
final BitmapFactory.Options options = new BitmapFactory.Options();
- options.inPreferredConfig = Bitmap.Config.ALPHA_8;
options.inSampleSize = inSampleSize;
Bitmap bitmap = BitmapFactory.decodeResource(
res,