Merge "Revert "Release bitmap reference right after Per85ComputeTask done its job."" into qt-dev
am: 9aab7ae143
Change-Id: I0bf798bc8443d23455570b63ec6478a83f4ce34b
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