summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseDoubleArray.java
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2021-12-13 15:46:29 -0600
committerchaviw <chaviw@google.com>2021-12-28 11:27:23 -0600
commitb680371f7703b3ae60c77efc25939cba1be78439 (patch)
treec9faa3c59ebd4214ffc219da8067478cffe79b59 /core/java/android/util/SparseDoubleArray.java
parent6d2adf4215bd42386572dc1181d2570a488d9414 (diff)
Send syncStatus and return FrameCommitCallback in FrameCallback
FrameCallback sends back the syncStatus and allows the caller to return a FrameCommitCallback. This is so the caller can evaluate the results of the sync and determine if it wants to continue waiting for a commit callback. In cases, where the sync has failed, there will never be a commit callback so the caller can avoid waiting. This is partically helpful for VRI because it wants to sync with a frame that will draw, but also doesn't want to get stuck indefinitely waiting on the callback. VRI can check the syncStatus and only handle blast sync and/or reportDraw when its determined that a draw will happen. This allows VRI to remove frameCompleteCallback since it can now wait until a buffer has drawn instead of when the vsync has completed. This makes sure it waits on FrameDropped since that result indicates HWUI will draw on the next vsync Test: BlastSync Bug: 200284684 Change-Id: Ic6e2f08ea21ac8a1634a3389c927fcb68ede3f7b
Diffstat (limited to 'core/java/android/util/SparseDoubleArray.java')
0 files changed, 0 insertions, 0 deletions