hwc: Close overlay when HWC disabled
* SF will disable HWC before showing the electron beam animation. Close the overlay so that the GPU can be used. Change-Id: I25bb3ed5cd9a5d80a590af4f94f2d0b903e98352
This commit is contained in:
parent
29808884a9
commit
2657e2e851
@ -112,6 +112,10 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list)
|
||||
ctx->overlayInUse = false;
|
||||
ctx->mOverlay->setState(ovutils::OV_CLOSED);
|
||||
}
|
||||
} else {
|
||||
ctx->overlayInUse = false;
|
||||
ctx->mOverlay->setState(ovutils::OV_CLOSED);
|
||||
ctx->qbuf->unlockAll();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user