diff options
author | Marin Shalamanov <shalamanov@google.com> | 2020-04-21 18:59:43 +0200 |
---|---|---|
committer | Marin Shalamanov <shalamanov@google.com> | 2020-04-22 16:40:01 +0000 |
commit | 92b6197e647fcb7339d00e57fd179bc5a3d26c99 (patch) | |
tree | e23adaa852cc5bf8078f4bec9b60500ef6b181df /overlay | |
parent | ae3633ca9d756c238df636e7f1d6ba638c214607 (diff) | |
download | atv-92b6197e647fcb7339d00e57fd179bc5a3d26c99.tar.gz |
Set config_maxUiWidth to 1920
We limit the UI graphics resolution to 1080p because higher
resolution is unnecessary and causes too much overhead on the GPU.
This doesn't affect hardware composed video streams as well as
apps that create native views or intentionally render into a
different-sized Surface.
Test: Manually - built and flashed a device. Verified
that UI runs at low resolution and YouTube videos
run are not affected.
Bug: 145791247
Change-Id: Ifc0df04c35ddc5917df18c2f5c6ce498e8ba452d
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 6625cb8..19f31de 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -79,4 +79,11 @@ <!-- Enable assistant to show in front of the dream/screensaver. --> <bool name="config_assistantOnTopOfDream">true</bool> + + <!-- Maximum size, specified in pixels, to restrain the display space width to. Height and + density will be scaled accordingly to maintain aspect ratio. A value of 0 indicates no + constraint will be enforced. + We limit the UI graphics width to 1920 because higher resolution is unnecessary and causes + too much overhead on the GPU for Android TV devices. --> + <integer name="config_maxUiWidth">1920</integer> </resources> |