hwc: Minor bug fixes.
Some minor bug fixes. Change-Id: Ie8c2f58b9c6db6e77739e4693da503f6f963827d
This commit is contained in:
committed by
Iliyan Malchev
parent
56f610dd23
commit
649cda6710
@@ -75,16 +75,23 @@ static void hwc_registerProcs(struct hwc_composer_device_1* dev,
|
||||
init_uevent_thread(ctx);
|
||||
}
|
||||
|
||||
//Helper
|
||||
static void reset() {
|
||||
//reset for this draw round
|
||||
VideoOverlay::reset();
|
||||
ExtOnly::reset();
|
||||
UIMirrorOverlay::reset();
|
||||
ExtOnly::reset();
|
||||
//TODO MDPComp
|
||||
}
|
||||
|
||||
static int hwc_prepare(hwc_composer_device_1 *dev, size_t numDisplays,
|
||||
hwc_display_contents_1_t** displays)
|
||||
{
|
||||
hwc_context_t* ctx = (hwc_context_t*)(dev);
|
||||
ctx->overlayInUse = false;
|
||||
|
||||
//reset for this draw round
|
||||
VideoOverlay::reset();
|
||||
ExtOnly::reset();
|
||||
UIMirrorOverlay::reset();
|
||||
reset();
|
||||
|
||||
//If securing of h/w in progress skip comp using overlay.
|
||||
if(ctx->mSecuring == true) return 0;
|
||||
|
||||
Reference in New Issue
Block a user