summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Brian Anderson <brianderson@google.com> 2016-07-22 10:32:47 -0700
committer Brian Anderson <brianderson@google.com> 2016-11-15 12:59:26 -0800
commit069b365163470d2736eb6f591c354d208b5da23b (patch)
treeeff239d562326bda8c62e741e2eeaea3e8f2a1d5 /libs/gui/ConsumerBase.cpp
parentbaaad32cd582bcc09db89135715717234ea398ea (diff)
Add displayPresentTime to getFrameTimestamps
Makes HWC1 use displayRetireTime and HWC2 use displayPresentTime. Properly takes into account if HWC2On1Adapter is used. Returns whether present or retire is supported via eglQueryTimestampSupportedANDROID, which uses a cached answer in Surface. Surface::getFrameTimestamps returns with an error if the caller requests an unsupported timestamp. Test: adb shell /data/nativetest/libgui_test/libgui_test --gtest_filter=*GetFrameTimestamps* Change-Id: Ib91c2d05d7fb5cbf307e2dec1e20e79bcc19d90b
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions