summaryrefslogtreecommitdiff
path: root/libs/input/InputDevice.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-08-25 17:10:56 +0000
commit09fa1d6665aa6022d5c6c8f61fc81f950b476a2f (patch)
treee5036394204e23126cf7d2521b89f6da0f13c000 /libs/input/InputDevice.cpp
parenta62797e49af1ffcab35d86930ef988261cc30334 (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
Diffstat (limited to 'libs/input/InputDevice.cpp')
0 files changed, 0 insertions, 0 deletions