OSDN Git Service

Best fit the external display
authorMa Jian <majian@jidemail.com>
Fri, 17 Jun 2016 03:51:07 +0000 (11:51 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 27 Jun 2016 11:55:33 +0000 (19:55 +0800)
commit7c9a5244690da7f5ab282475a31c0dfb17aa9880
treebf5666079c6323f646b8eb67b2b8197be74c4fd8
parent9b6333c0470a43e4a94ab3d94e0b4cf4558fd9ef
Best fit the external display

NO_REF_TASK
tested:
1) set persist.remixos.disp_best_fit to true
2) plugin the HDMI, the resolution should be the one fit the primary
   screen (i.e. the resolution should be larger than or equal to primery
   resolution, and it is the closest one)

3) set persist.remixos.disp_best_fit to false
4) plugin HDMI again, the external display will use the default
   resolution.

Change-Id: I80b0fe6e7cc676ce1915f07f267204734bfc645f
gralloc_drm_kms.c