summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2009-06-23 10:34:55 -0700
committerMarco Nelissen <marcone@google.com>2010-01-04 09:54:45 -0800
commit7bcbd511731e13b9f2778e6aa6c633417d266f5e (patch)
treef4af903e21b11f150a4b722876e3a15330cc90a9 /graphics
parent3bf657a22bc46f06a9b73d2c5d256f48205849d6 (diff)
downloadframeworks_base-7bcbd511731e13b9f2778e6aa6c633417d266f5e.zip
frameworks_base-7bcbd511731e13b9f2778e6aa6c633417d266f5e.tar.gz
frameworks_base-7bcbd511731e13b9f2778e6aa6c633417d266f5e.tar.bz2
Don't round size to page size. Ashmem will do this internally as needed.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/BitmapFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/graphics/BitmapFactory.java b/graphics/java/android/graphics/BitmapFactory.java
index f60a7be..3c03eed 100644
--- a/graphics/java/android/graphics/BitmapFactory.java
+++ b/graphics/java/android/graphics/BitmapFactory.java
@@ -532,7 +532,7 @@ public class BitmapFactory {
public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) {
try {
if (MemoryFile.isMemoryFile(fd)) {
- int mappedlength = MemoryFile.getMappedSize(fd);
+ int mappedlength = MemoryFile.getSize(fd);
MemoryFile file = new MemoryFile(fd, mappedlength, "r");
InputStream is = file.getInputStream();
Bitmap bm = decodeStream(is, outPadding, opts);