hwc: Use correct z-order in video overlay

Set z-order of video layer to 0 and framebuffer to 1 in case
of video overlay composition so that the blending takes effect.
Also set is_fg OFF for framebuffer.

Change-Id: I05f930074d265d690f29a1003b7c28077df89bbf
CRs-fixed: 458180
diff --git a/libhwcomposer/hwc_video.cpp b/libhwcomposer/hwc_video.cpp
index f09cc35..f95456b 100644
--- a/libhwcomposer/hwc_video.cpp
+++ b/libhwcomposer/hwc_video.cpp
@@ -132,7 +132,7 @@
 
     mDest = dest;
     ovutils::eMdpFlags mdpFlags = ovutils::OV_MDP_FLAGS_NONE;
-    ovutils::eZorder zOrder = ovutils::ZORDER_1;
+    ovutils::eZorder zOrder = ovutils::ZORDER_0;
     ovutils::eIsFg isFg = ovutils::IS_FG_OFF;
     if (ctx->listStats[mDpy].numAppLayers == 1) {
         isFg = ovutils::IS_FG_SET;
@@ -176,6 +176,10 @@
     return true;
 }
 
+bool VideoOverlayLowRes::isModeOn() {
+    return mModeOn;
+}
+
 //===========VideoOverlayHighRes=========================
 
 VideoOverlayHighRes::VideoOverlayHighRes(const int& dpy): IVideoOverlay(dpy) {}
@@ -244,7 +248,7 @@
     }
 
     ovutils::eMdpFlags mdpFlags = ovutils::OV_MDP_FLAGS_NONE;
-    ovutils::eZorder zOrder = ovutils::ZORDER_1;
+    ovutils::eZorder zOrder = ovutils::ZORDER_0;
     ovutils::eIsFg isFg = ovutils::IS_FG_OFF;
     if (ctx->listStats[mDpy].numAppLayers == 1) {
         isFg = ovutils::IS_FG_SET;
@@ -299,5 +303,8 @@
     return true;
 }
 
+bool VideoOverlayHighRes::isModeOn() {
+    return mModeOn;
+}
 
 }; //namespace qhwc