From 2f67bad61f266779080424e808dcd4aecf1232e5 Mon Sep 17 00:00:00 2001 From: "Mike J. Chen" Date: Tue, 22 May 2012 08:40:12 -0700 Subject: Revert "hwc: Stash hdmi mode resolution in a property" This reverts commit ce768b26571c66e176fa6d10c64ded578da937d9. This should have been marked DO NOT MERGE in ics-aah. --- hwc/hwc.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hwc/hwc.c b/hwc/hwc.c index 2fab0a7b..d6c28f71 100644 --- a/hwc/hwc.c +++ b/hwc/hwc.c @@ -920,23 +920,8 @@ static int omap4_hwc_set_best_hdmi_mode(omap4_hwc_device_t *hwc_dev, __u32 xres, sdis.mode = d.dis.modedb[best]; ALOGD("picking #%d", best); /* only reconfigure on change */ - if (ext->last_mode != ~best) { - /* set a property that apps that care (e.g. YouTube) can use - * to determine whether or not to stream lower resolution - * videos when the hdmi mode is < 1080p. - * otherwise, they'd give us 1080p and we'd just scale it - * down to the hdmi mode res. UI apps are always going - * to draw at 1080p and we'll scale down because the - * system can't support dynamic dpi changes. - */ - char display[PROPERTY_VALUE_MAX]; - snprintf(display, sizeof(display), "%dx%d", - d.modedb[best].xres, d.modedb[best].yres); - LOGD("setting property sys.display-size to %s", display); - property_set("sys.display-size", display); - + if (ext->last_mode != ~best) ioctl(hwc_dev->dsscomp_fd, DSSCIOC_SETUP_DISPLAY, &sdis); - } ext->last_mode = ~best; } else { __u32 ext_width = d.dis.width_in_mm; -- cgit v1.2.3