summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/DisplayHardware
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-09-05 13:03:10 -0700
committerJesse Hall <jessehall@google.com>2012-09-05 13:03:10 -0700
commite25d005d91344c500450f01d4a258ca9c3676627 (patch)
treef654bfe66f9bc143c14dd075a272f4ad6d6303bf /services/surfaceflinger/DisplayHardware
parent63f165fd6b86d04be94d4023e845e98560504a96 (diff)
downloadframeworks_native-e25d005d91344c500450f01d4a258ca9c3676627.zip
frameworks_native-e25d005d91344c500450f01d4a258ca9c3676627.tar.gz
frameworks_native-e25d005d91344c500450f01d4a258ca9c3676627.tar.bz2
Always reset layer acquireFenceFd after commit
If SurfaceFlinger needs to refresh the screen but the dirty region is empty, it won't set the layer acquire fences, and stale file descriptors will be passed to HWC commit(). Now we make sure to clear the stale file descriptors for each layer right after commit(). Bug: 7078301 Change-Id: I6953ff91fc5488f105b30b07306f9c45a4c3f780
Diffstat (limited to 'services/surfaceflinger/DisplayHardware')
-rw-r--r--services/surfaceflinger/DisplayHardware/HWComposer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
index 23290e3..113c26c 100644
--- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp
+++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp
@@ -598,6 +598,8 @@ public:
visibleRegion.numRects = 0;
visibleRegion.rects = NULL;
}
+
+ getLayer()->acquireFenceFd = -1;
}
};