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