mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197968 - Fix the fence problem for bootAnim. r=sotaro
This commit is contained in:
parent
84ac11686e
commit
00dec04883
@ -287,7 +287,13 @@ GonkDisplayJB::Post(buffer_handle_t buf, int fence)
|
||||
#endif
|
||||
mHwc->prepare(mHwc, HWC_NUM_DISPLAY_TYPES, displays);
|
||||
int err = mHwc->set(mHwc, HWC_NUM_DISPLAY_TYPES, displays);
|
||||
mDispSurface->setReleaseFenceFd(mList->hwLayers[1].releaseFenceFd);
|
||||
|
||||
if (!mBootAnimDispSurface.get()) {
|
||||
mDispSurface->setReleaseFenceFd(mList->hwLayers[1].releaseFenceFd);
|
||||
} else {
|
||||
mBootAnimDispSurface->setReleaseFenceFd(mList->hwLayers[1].releaseFenceFd);
|
||||
}
|
||||
|
||||
if (mList->retireFenceFd >= 0)
|
||||
close(mList->retireFenceFd);
|
||||
return !err;
|
||||
|
Loading…
Reference in New Issue
Block a user