Merge "Release bitmap reference right after Per85ComputeTask done its job."
This commit is contained in:
@@ -85,7 +85,9 @@ class ImageProcessHelper {
|
||||
Bitmap bitmap = bitmaps[0];
|
||||
if (bitmap != null) {
|
||||
int[] histogram = processHistogram(bitmap);
|
||||
return computePercentile85(bitmap, histogram);
|
||||
Float val = computePercentile85(bitmap, histogram);
|
||||
bitmaps[0] = null;
|
||||
return val;
|
||||
}
|
||||
Log.e(TAG, "Per85ComputeTask: Can't get bitmap");
|
||||
return DEFAULT_PER85;
|
||||
|
||||
Reference in New Issue
Block a user