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.h b/libhwcomposer/hwc_video.h
index 4acde9d..80a47f1 100644
--- a/libhwcomposer/hwc_video.h
+++ b/libhwcomposer/hwc_video.h
@@ -40,8 +40,10 @@
virtual bool draw(hwc_context_t *ctx,
hwc_display_contents_1_t *list) = 0;
virtual void reset() = 0;
+ virtual bool isModeOn() = 0;
//Factory method that returns a low-res or high-res version
static IVideoOverlay *getObject(const int& width, const int& dpy);
+
protected:
const int mDpy; // display to update
bool mModeOn; // if prepare happened
@@ -55,6 +57,7 @@
bool prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list);
bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list);
void reset();
+ bool isModeOn();
private:
//Configures overlay for video prim and ext
bool configure(hwc_context_t *ctx, hwc_layer_1_t *yuvlayer);
@@ -72,6 +75,7 @@
bool prepare(hwc_context_t *ctx, hwc_display_contents_1_t *list);
bool draw(hwc_context_t *ctx, hwc_display_contents_1_t *list);
void reset();
+ bool isModeOn();
private:
//Configures overlay for video prim and ext
bool configure(hwc_context_t *ctx, hwc_layer_1_t *yuvlayer);