commit | 2fd3ceaf9834d1a0056ff59c454c643f7ab14f75 | [log] [tgz] |
---|---|---|
author | Kevin DuBois <kevindubois@google.com> | Thu Nov 14 08:52:45 2019 -0800 |
committer | Kevin DuBois <kevindubois@google.com> | Tue Nov 26 11:10:28 2019 -0800 |
tree | 102379b55c35b9b7e9ba01a756197f13c4aeb126 | |
parent | b2501bad7ccb2000237ccb2b08ca04f7ca6c5ec1 [diff] [blame] |
SF: VSyncReactor add timestamp querying functions Adds 2 more functions from the DispSync interface to VSyncReactor, computeNextRefresh, and expectedPresentTime Bug: 140303479 Test: 3 new units Change-Id: I75ea79ed749f05daf3337ddc8ca145e2ecceabcd
diff --git a/services/surfaceflinger/tests/unittests/VSyncDispatchTimerQueueTest.cpp b/services/surfaceflinger/tests/unittests/VSyncDispatchTimerQueueTest.cpp index 82950b5..82b1051 100644 --- a/services/surfaceflinger/tests/unittests/VSyncDispatchTimerQueueTest.cpp +++ b/services/surfaceflinger/tests/unittests/VSyncDispatchTimerQueueTest.cpp
@@ -39,6 +39,7 @@ MOCK_METHOD1(addVsyncTimestamp, void(nsecs_t)); MOCK_CONST_METHOD1(nextAnticipatedVSyncTimeFrom, nsecs_t(nsecs_t)); + MOCK_CONST_METHOD0(currentPeriod, nsecs_t()); nsecs_t nextVSyncTime(nsecs_t timePoint) const { if (timePoint % mPeriod == 0) {