summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Vishnu Nair <vishnun@google.com> 2019-12-12 15:07:52 -0800
committer Vishnu Nair <vishnun@google.com> 2019-12-20 23:22:57 +0000
commita483b4aae955319e48fc3837eae58f2049c63f4b (patch)
treea10919b0081d010cb3b4eb9daa6f219998735719 /vulkan/libvulkan/api.cpp
parent99f9d44fbad410afec4f0e340172f239fc0ed28d (diff)
Draw shadows when the casting layer is occluded or transparent
Ignore transparent region when generating the composition layer for shadows. Client may provide transparent region hints but the shadow should be drawn over the entire layer. Solves an issue with YouTube in PiP which sets a transparent region where the SurfaceView is shown causing a shadow of incorrect size to be drawn. Draw shadows even if the layer is completely occluded by another layer. The layer will not be composed in this case causing the shadow to not be drawn either. So extend its visible region by the shadow length so we can check if the shadows will be occluded as well. Bug: 136561771 Test: atest libcompositionengine_test Test: manual tests with pip overriding shadows to be drawn by sf Change-Id: I4c6cae1716caebe46119ebd1643d8b5e3eda56c3
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions