hwc: Minor bug fixes.

Some minor bug fixes.

Change-Id: Ie8c2f58b9c6db6e77739e4693da503f6f963827d
This commit is contained in:
Saurabh Shah
2012-09-16 16:05:58 -07:00
committed by Iliyan Malchev
parent 56f610dd23
commit 649cda6710
4 changed files with 27 additions and 15 deletions

View File

@@ -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;