summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoder.cpp
diff options
context:
space:
mode:
author Chavi Weingarten <chaviw@google.com> 2022-08-17 21:57:04 +0000
committer Chavi Weingarten <chaviw@google.com> 2022-10-04 14:14:47 +0000
commita722b8165fc48c44cfebd2f3fb0ca038eb53baeb (patch)
tree700b1024ddd24532a8023f0cdf924ea252c70538 /libs/jpegrecoverymap/jpegencoder.cpp
parent293041cac77386d5a782de721a1ee63a34556965 (diff)
Don't queue buffer if nothing new to draw in Display
The current logic only checks if dirty is not empty, but doesn't account for no content changing. Instead use the same logic that's in beginFrame to compute mustRecompute and use that when determining if the display should queue a buffer. This fixes an issue where a Displays first few frames could be black until the content is loaded. Bug: 239888440 Test: First frame from screenrecord is no longer black Change-Id: Ibb568302bf2d50db167a1f9ca76a0f37e2c65bf5 (cherry picked from commit 09fa1d6665aa6022d5c6c8f61fc81f950b476a2f)
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoder.cpp')
0 files changed, 0 insertions, 0 deletions