summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike J. Chen <mjchen@google.com>2012-05-22 08:40:12 -0700
committerMike J. Chen <mjchen@google.com>2012-05-22 08:40:12 -0700
commit2f67bad61f266779080424e808dcd4aecf1232e5 (patch)
tree635f4e1d37b02fc3317a4cce8eea9c84359c5f35
parent9f184c3c874e43af8174a9fd888f8c926866daab (diff)
downloadhardware_ti_omap4xxx-2f67bad61f266779080424e808dcd4aecf1232e5.zip
hardware_ti_omap4xxx-2f67bad61f266779080424e808dcd4aecf1232e5.tar.gz
hardware_ti_omap4xxx-2f67bad61f266779080424e808dcd4aecf1232e5.tar.bz2
Revert "hwc: Stash hdmi mode resolution in a property"
This reverts commit ce768b26571c66e176fa6d10c64ded578da937d9. This should have been marked DO NOT MERGE in ics-aah.
-rw-r--r--hwc/hwc.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 2fab0a7..d6c28f7 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;