Skip to content
Snippets Groups Projects
Commit 44b02d1a authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android Build Coastguard Worker
Browse files

Revert "Close TaskSnapshot hardware buffer before remove from cache."

This reverts commit cc465c76.

Reason for revert: b/328017336
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4e3c48ee904c1f0d6f92b185310774a02788d28d)
Merged-In: Ic93a80db0a805bb13ad9a7ca507eaa43e7e7211b
Change-Id: Ic93a80db0a805bb13ad9a7ca507eaa43e7e7211b
parent a7ee278b
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@
package com.android.server.wm;
import android.annotation.Nullable;
import android.hardware.HardwareBuffer;
import android.util.ArrayMap;
import android.window.TaskSnapshot;
......@@ -93,10 +92,6 @@ abstract class SnapshotCache<TYPE extends WindowContainer> {
if (entry != null) {
mAppIdMap.remove(entry.topApp);
mRunningCache.remove(id);
final HardwareBuffer buffer = entry.snapshot.getHardwareBuffer();
if (buffer != null) {
buffer.close();
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment