summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2015-07-09 12:43:33 -0700
committer Dan Stoza <stoza@google.com> 2015-07-23 11:15:32 -0700
commit14cd37cf3d7d783eaeb4cfb5f1f9e712d3b49578 (patch)
treec748b48b6b9984358a7137d0775ea09a70934eee /libs/gui/ConsumerBase.cpp
parent177a4166252afddbe03a5ed7b2e56b0f9173ef81 (diff)
SF: Track missed frames and optionally drop them
Adds code to track whether SurfaceFlinger has sent two frames to HWC in the same vsync window. This can occur if one frame is delayed so far it slips into the next window or just if one frame takes an abnormal amount of time. If this occurs, it shows up as FrameMissed in systrace. Also adds a property debug.sf.drop_missed_frames which, if set, tells SurfaceFlinger to skip sending a frame to HWC (i.e., calling prepare/set) when we detect this condition, which can help prevent backpressure from the HWC implementation. Bug: 22513558 Change-Id: I2df0d44cec5fd6edba419388d8c90b5710d1a5b6
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions