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
This commit is contained in:
parent
2cf855fbef
commit
02de802182
@ -599,6 +599,8 @@ public:
|
|||||||
visibleRegion.numRects = 0;
|
visibleRegion.numRects = 0;
|
||||||
visibleRegion.rects = NULL;
|
visibleRegion.rects = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLayer()->acquireFenceFd = -1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user