summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Util.java
diff options
context:
space:
mode:
authorWei-Ta Chen <weita@google.com>2009-07-20 12:37:36 +0800
committerWei-Ta Chen <weita@google.com>2009-07-20 12:43:03 +0800
commit026dff889c80763fc322ed03e2d3a76750320138 (patch)
tree0fd1c2dfbd6a026304dec594fc884e1da5fc1c4d /src/com/android/camera/Util.java
parent6a598c238e4184bffdffad17ed016da069aa4b56 (diff)
downloadLegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.zip
LegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.tar.gz
LegacyCamera-026dff889c80763fc322ed03e2d3a76750320138.tar.bz2
Fix http://b/1907995 by using native allocation in BitmapFactory.
Diffstat (limited to 'src/com/android/camera/Util.java')
-rw-r--r--src/com/android/camera/Util.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/camera/Util.java b/src/com/android/camera/Util.java
index d709aba..356426f 100644
--- a/src/com/android/camera/Util.java
+++ b/src/com/android/camera/Util.java
@@ -483,10 +483,9 @@ public class Util {
}
// Returns Options that set the puregeable flag for Bitmap decode.
- public static BitmapFactory.Options createPurgeableOption() {
+ public static BitmapFactory.Options createNativeAllocOptions() {
BitmapFactory.Options options = new BitmapFactory.Options();
- options.inPurgeable = true;
- options.inInputShareable = true;
+ options.inNativeAlloc = true;
return options;
}
}