Merge "hwc: Calculate viewframe from layers display frame information."
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
dde6252243
@@ -756,6 +756,7 @@ void setListStats(hwc_context_t *ctx,
|
|||||||
(int)ctx->dpyAttr[dpy].xres, (int)ctx->dpyAttr[dpy].yres);
|
(int)ctx->dpyAttr[dpy].xres, (int)ctx->dpyAttr[dpy].yres);
|
||||||
ctx->listStats[dpy].secureUI = false;
|
ctx->listStats[dpy].secureUI = false;
|
||||||
ctx->listStats[dpy].yuv4k2kCount = 0;
|
ctx->listStats[dpy].yuv4k2kCount = 0;
|
||||||
|
ctx->mViewFrame[dpy] = (hwc_rect_t){0, 0, 0, 0};
|
||||||
|
|
||||||
trimList(ctx, list, dpy);
|
trimList(ctx, list, dpy);
|
||||||
optimizeLayerRects(ctx, list, dpy);
|
optimizeLayerRects(ctx, list, dpy);
|
||||||
@@ -764,6 +765,9 @@ void setListStats(hwc_context_t *ctx,
|
|||||||
hwc_layer_1_t const* layer = &list->hwLayers[i];
|
hwc_layer_1_t const* layer = &list->hwLayers[i];
|
||||||
private_handle_t *hnd = (private_handle_t *)layer->handle;
|
private_handle_t *hnd = (private_handle_t *)layer->handle;
|
||||||
|
|
||||||
|
// Calculate view frame of each display from the layer displayframe
|
||||||
|
ctx->mViewFrame[dpy] = getUnion(ctx->mViewFrame[dpy],
|
||||||
|
layer->displayFrame);
|
||||||
#ifdef QCOM_BSP
|
#ifdef QCOM_BSP
|
||||||
if (layer->flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
|
if (layer->flags & HWC_SCREENSHOT_ANIMATOR_LAYER) {
|
||||||
ctx->listStats[dpy].isDisplayAnimating = true;
|
ctx->listStats[dpy].isDisplayAnimating = true;
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ struct hwc_context_t {
|
|||||||
qhwc::LayerProp *layerProp[HWC_NUM_DISPLAY_TYPES];
|
qhwc::LayerProp *layerProp[HWC_NUM_DISPLAY_TYPES];
|
||||||
qhwc::MDPComp *mMDPComp[HWC_NUM_DISPLAY_TYPES];
|
qhwc::MDPComp *mMDPComp[HWC_NUM_DISPLAY_TYPES];
|
||||||
qhwc::HwcDebug *mHwcDebug[HWC_NUM_DISPLAY_TYPES];
|
qhwc::HwcDebug *mHwcDebug[HWC_NUM_DISPLAY_TYPES];
|
||||||
|
hwc_rect_t mViewFrame[HWC_NUM_DISPLAY_TYPES];
|
||||||
qhwc::AssertiveDisplay *mAD;
|
qhwc::AssertiveDisplay *mAD;
|
||||||
qhwc::VPUClient *mVPUClient;
|
qhwc::VPUClient *mVPUClient;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user