summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Galia Peycheva <galinap@google.com> 2022-08-10 10:12:09 +0200
committer Galia Peycheva <galinap@google.com> 2022-08-10 10:12:09 +0200
commiteb180f4a8d5f0b09e58ad5537a45c80f01346999 (patch)
treebd4c6f817fda356757c78c4e734610751350234c
parent5242e7a97d24cdb4a85822dfb41fbb3f86a22897 (diff)
Remove rounded corners on Tv PiP
The TV PiP has a border that has rounded corners. We don't want to have rounded corners on the PiP surface, because it is an expensive operation. Additionally, some TVs send video buffers directly to HWC, so the buffers are not GPU-readable. This makes rounding corners in SF not possible. To have a consistent PiP UI across ATV, we use the PiP border as a means to add rounded corners. Bug: 241766265 Test: m && flash && start pip Change-Id: Ic45895a489cfce2c77398363b220802fdd52187b
-rw-r--r--libs/WindowManager/Shell/res/values-television/dimen.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/res/values-television/dimen.xml b/libs/WindowManager/Shell/res/values-television/dimen.xml
index 14e89f8b08df..376cc4faca6f 100644
--- a/libs/WindowManager/Shell/res/values-television/dimen.xml
+++ b/libs/WindowManager/Shell/res/values-television/dimen.xml
@@ -21,4 +21,7 @@
<!-- Padding between PIP and keep clear areas that caused it to move. -->
<dimen name="pip_keep_clear_area_padding">16dp</dimen>
+
+ <!-- The corner radius for PiP window. -->
+ <dimen name="pip_corner_radius">0dp</dimen>
</resources>