commit | 5a3233e47b091c4d58ca4f156ebe726c7dd84cb6 | [log] [tgz] |
---|---|---|
author | huans <huans@google.com> | Thu Jan 10 16:08:31 2019 -0800 |
committer | huans <huans@google.com> | Thu Jan 10 16:08:31 2019 -0800 |
tree | ec5031caa181010252fe7b3ab5a4d6e9124e85a0 | |
parent | 39d21650471126c99d6cf1bb7c8086de2935fc0c [diff] |
Close fence fd when used. Bug: 122655785 Test: launch chrome, run stopwatch over 10 mins Change-Id: I7818fd307658b9277c5ec7f7d4cc0f012d71c793
diff --git a/system/hwc2/EmuHWC2.cpp b/system/hwc2/EmuHWC2.cpp index 37466a1..3a53296 100644 --- a/system/hwc2/EmuHWC2.cpp +++ b/system/hwc2/EmuHWC2.cpp
@@ -697,6 +697,7 @@ ALOGE("%s waited on fence %d for 3000 ms", __FUNCTION__, fence); } + close(fence); } else { ALOGV("%s: aquiredFence not set for layer %u",