diff options
| author | Jay Wang <jaywang@codeaurora.org> | 2015-11-06 14:35:17 -0800 |
|---|---|---|
| committer | Jay Wang <jaywang@codeaurora.org> | 2015-12-22 17:34:55 -0800 |
| commit | 8f0f5c0439c2a6aee50ea78bff3454d887cee6b4 (patch) | |
| tree | 3607e673cfc5d324c5cea49b85e3c2ea57009397 /src/com/thundersoft | |
| parent | 863bd52976530357bcadcab0fb59887f8210520f (diff) | |
| download | android_packages_apps_Gallery2-8f0f5c0439c2a6aee50ea78bff3454d887cee6b4.tar.gz android_packages_apps_Gallery2-8f0f5c0439c2a6aee50ea78bff3454d887cee6b4.tar.bz2 android_packages_apps_Gallery2-8f0f5c0439c2a6aee50ea78bff3454d887cee6b4.zip | |
Gallery2: fix memory leak and reduce memory use
Clear references to FilterShowActivity and reset singleton MasterImage
when exiting FilterShowActivity. Wait for saving task to complete before
exiting FilterShowActivity to resolve issue of re-entering activity
while previous image save task is still running. Do not upscale border
assets to reduce memory footprint.
Change-Id: If17479db2ae78955c15e95f72588e32019177bb9
CRs-Fixed: 929338
Diffstat (limited to 'src/com/thundersoft')
| -rw-r--r-- | src/com/thundersoft/hz/selfportrait/makeup/engine/MakeupEngine.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/thundersoft/hz/selfportrait/makeup/engine/MakeupEngine.java b/src/com/thundersoft/hz/selfportrait/makeup/engine/MakeupEngine.java index 8d58bcfef..d33dc7f91 100644 --- a/src/com/thundersoft/hz/selfportrait/makeup/engine/MakeupEngine.java +++ b/src/com/thundersoft/hz/selfportrait/makeup/engine/MakeupEngine.java @@ -17,7 +17,6 @@ package com.thundersoft.hz.selfportrait.makeup.engine; -import android.content.Context; import android.graphics.Bitmap; import android.graphics.Rect; import android.util.Log; @@ -46,16 +45,6 @@ public class MakeupEngine { return mInstance; } - private Context mContext; - - public void setContext(Context context) { - mContext = context; - } - - public Context getContext() { - return mContext; - } - /** * FUNCTION: doProcessBeautify * Do process face region clean and whiten. |
