summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author xinying1 <xinying1@xiaomi.corp-partner.google.com> 2022-04-26 14:41:30 +0800
committer Ying Xin <xinying1@xiaomi.corp-partner.google.com> 2022-06-17 06:20:13 +0000
commitf4200e674fc272d7a2d564ed97c1a62c812525b4 (patch)
tree9e73a5318f495963a818557f06b3f967377dcc8c /libs/jpegrecoverymap/jpegencoderhelper.cpp
parentb86796a06f9c9f03211f0fad086100987f530005 (diff)
Fix the shadow problem caused by layer parent switching
When the parent of a layer changes, shadowRadius should not be directly passed in the computBounds here. When the layer's parent changes, for example, open an app in freeform. If the app exits the current ActivityRecord, it will trigger the recent task request screen capture of the current app, temporarily switch the task of the app to "Screenshot Parent", and then switch back. This operation will cause the shadow of the task to be passed to the children layers through CanDrawShadows, i.e., the shadow of non Container layer is wrongly passed to its children layers. Therefore, there is a problem in shadow drawing. We should judge whether shadowRadius needs to be passed at this time through CanDrawShadows. If not, pass 0.f. Otherwise, the shadow will be painted repeatedly. bug:215476160 in partnerissuetracker Signed-off-by: xinying1 <xinying1@xiaomi.corp-partner.google.com> Change-Id: Id4b6c8bcc79aa68f96d0c4c655ea853361ed1e7c
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions