summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Client.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2022-04-05 13:22:04 -0500
committer chaviw <chaviw@google.com> 2022-04-05 13:22:04 -0500
commita3c4d372532ddc8b6b965e5d2cd672c4bb3c3a9e (patch)
tree5bb03c760dce3804c15e3dfdd44bb3bfca01e2a5 /services/surfaceflinger/Client.cpp
parent70379c81822eefb7cb7f7fc7e42f1ee976b90f33 (diff)
Don't create CE Layer when EffectLayer has nothing to draw.
If the EffectLayer has nothing to draw, it's essentially a container layer. In that case, there's no need to create a CE Layer since nothing will draw on screen. This fixes the case where a VD is created for screenrecording. The first few frames can be black because there's an effect layer in the hierarchy with nothing to draw before the mirroring starts. When that happens, the recording shows black frames. There's no need to render the EffectLayer since it doesn't actually have content Fixes: 222749939 Test: Screenrecord no black frames at the start. Change-Id: Iec720810eaad923a4045b8f1b73b088ada86cfd1
Diffstat (limited to 'services/surfaceflinger/Client.cpp')
0 files changed, 0 insertions, 0 deletions