summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Marzia Favaro <marziana@google.com> 2025-03-10 10:59:41 +0000
committer Marzia Favaro <marziana@google.com> 2025-03-10 14:47:26 +0000
commit89341c12f60b1253327748c2ef8fbc43e927eb1e (patch)
tree034ffad4a272a85d9bc832b6ed41b16923b168ea /libs/androidfw/ObbFile.cpp
parentb4a1b07e0c166da880f0ef48f78623604ca1f518 (diff)
Do not create dim layer until it gets a valid dimming request
If a window requests a dim of 0 and no blur, the dim surface gets created (because technically someone is requesting to dim) and then immediately destroyed (because alpha=0, blur=0 means that this layer should be destroyed as it's useless). We can postpone creating a new surface until the window requests a non 0 value. Bug: 401449608 Test: DimmerTests Flag: EXEMPT minor change Change-Id: I11c97ae6401e3151df4941a5ec6ad42bb94357ce
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions