summaryrefslogtreecommitdiff
path: root/platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java
diff options
context:
space:
mode:
authorPaul Gardiner <paul.gardiner@artifex.com>2013-09-16 13:04:40 +0100
committerPaul Gardiner <paul.gardiner@artifex.com>2013-09-16 13:17:22 +0100
commit1d6f957544704aa865e91400ba368d11160653ad (patch)
tree92b17de520055c593de189fca8ece01f54275e9b /platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java
parentf5a16fe3f1bc2f40f76692669a0c16be27d644fb (diff)
downloadmupdf-1d6f957544704aa865e91400ba368d11160653ad.tar.xz
Android: remove use of Bitmap holder and avoid memory churn
Now use one-time allocation of page-sized bitmaps
Diffstat (limited to 'platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java')
-rw-r--r--platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java b/platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java
deleted file mode 100644
index 5816e7bb..00000000
--- a/platform/android/src/com/artifex/mupdfdemo/BitmapHolder.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.artifex.mupdfdemo;
-
-import android.graphics.Bitmap;
-
-public class BitmapHolder {
- private Bitmap bm;
-
- public BitmapHolder() {
- bm = null;
- }
-
- public synchronized void setBm(Bitmap abm) {
- if (bm != null && bm != abm)
- bm.recycle();
- bm = abm;
- }
-
- public synchronized void drop() {
- bm = null;
- }
-
- public synchronized Bitmap getBm() {
- return bm;
- }
-}