diff options
| author | 2020-01-10 15:11:15 -0800 | |
|---|---|---|
| committer | 2020-01-23 16:24:19 -0800 | |
| commit | 33682e9b907531967361452672c69fbebcde1cb5 (patch) | |
| tree | f8bf3b526539291f71b9be7dca1aadb7da8d49ee /libs/gui/BufferQueueThreadState.cpp | |
| parent | 329f126bd5a78f66620dd0b113681e88192d51ed (diff) | |
[AChoreographer] Move refresh rate callback headers into android
This is in parallel with exposing these apis into NDK from libandroid.
Also performing some cleanup:
* Add additional documentation.
* Pass an extra data pointer when unregistering a callback, so that
callbacks are keyed by callback function + data pointer. This way the
same callback method can be passed with different data pointers.
* Enforce in the implementation that the same callback + data pointer
can't be registered twice.
* Update cached vsync period once all callbacks have been fired for a
refresh rate change, not just when the first one fired.
Bug: 136262896
Test: ChorographerNativeTest
Change-Id: I9d1224bf05dcaf820166996b58a10b6e73d6adcd
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions