hwc: Minor bug fixes.
Some minor bug fixes.
Change-Id: Ie8c2f58b9c6db6e77739e4693da503f6f963827d
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp
index a28750d..ab55ea6 100644
--- a/libhwcomposer/hwc.cpp
+++ b/libhwcomposer/hwc.cpp
@@ -75,16 +75,23 @@
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;