Merge "hwc: Featurize framework changes"

This commit is contained in:
Linux Build Service Account
2013-05-31 00:29:38 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 4 additions and 0 deletions

View File

@@ -252,6 +252,7 @@ static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy,
ALOGD_IF (VSYNC_DEBUG, "VSYNC state changed to %s", ALOGD_IF (VSYNC_DEBUG, "VSYNC state changed to %s",
(enable)?"ENABLED":"DISABLED"); (enable)?"ENABLED":"DISABLED");
break; break;
#ifdef QCOM_BSP
case HWC_EVENT_ORIENTATION: case HWC_EVENT_ORIENTATION:
if(dpy == HWC_DISPLAY_PRIMARY) { if(dpy == HWC_DISPLAY_PRIMARY) {
// store the primary display orientation // store the primary display orientation
@@ -260,6 +261,7 @@ static int hwc_eventControl(struct hwc_composer_device_1* dev, int dpy,
ctx->deviceOrientation = enable; ctx->deviceOrientation = enable;
} }
break; break;
#endif
default: default:
ret = -EINVAL; ret = -EINVAL;
} }

View File

@@ -402,9 +402,11 @@ void setListStats(hwc_context_t *ctx,
if(UNLIKELY(isExtOnly(hnd))){ if(UNLIKELY(isExtOnly(hnd))){
ctx->listStats[dpy].extOnlyLayerIndex = i; ctx->listStats[dpy].extOnlyLayerIndex = i;
} }
#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;
} }
#endif
} }
if(ctx->listStats[dpy].yuvCount > 0) { if(ctx->listStats[dpy].yuvCount > 0) {
if (property_get("hw.cabl.yuv", property, NULL) > 0) { if (property_get("hw.cabl.yuv", property, NULL) > 0) {