OSDN Git Service

systrace: avoid queuing signaled fence in FenceMonitor
authorYiwei Zhang <zzyiwei@google.com>
Sat, 9 Mar 2019 01:14:53 +0000 (17:14 -0800)
committerYiwei Zhang <zzyiwei@google.com>
Sat, 9 Mar 2019 01:35:49 +0000 (17:35 -0800)
commit28178135a31b8fd395398b45709b1d414903ab81
treedf96582488ba4de32adb1668660a7f9d55a4d834
parent9e919eb8c26c96e3276474dd52adbc24067c1d29
systrace: avoid queuing signaled fence in FenceMonitor

If the HWC release fence dequeued has already signaled, the existing
mechanism will still queue it and show it later if there's release fence
waiting, which is not accurate. This change will avoid queuing signaled
fences into FenceMonitor to make the trace more reasonable.

Bug: 127781085
Test: build, flash, boot and take systrace with gfx category
Change-Id: Ie607f690bba8ccdfab4d02793abcf21e18c3eb63
libs/gui/Surface.cpp