summaryrefslogtreecommitdiff
path: root/overlay
diff options
context:
space:
mode:
authorMarin Shalamanov <shalamanov@google.com>2020-04-21 18:59:43 +0200
committerMarin Shalamanov <shalamanov@google.com>2020-04-22 16:40:01 +0000
commit92b6197e647fcb7339d00e57fd179bc5a3d26c99 (patch)
treee23adaa852cc5bf8078f4bec9b60500ef6b181df /overlay
parentae3633ca9d756c238df636e7f1d6ba638c214607 (diff)
downloadatv-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.xml7
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>