diff options
author | Alec Mouri <alecmouri@google.com> | 2020-04-27 22:36:17 -0700 |
---|---|---|
committer | Alec Mouri <alecmouri@google.com> | 2020-05-07 19:19:23 -0700 |
commit | cf3ad873ddd7f1abf3804936befa511b2fbb12b6 (patch) | |
tree | d9b7cf1ed40b747c1a08bc1d691e2704a8153f8f /core/jni/include | |
parent | 075da89ba91832537f1d77990523930f8e366aed (diff) |
Dispatch refresh rate callbacks from DMS
AChoreographer will consume these callbacks in lieu of going through SF
for the callbacks. This is so that DMS can update its view of display
configs before apps receive the refresh rate callback so that apps can
get consistent information.
Bug: 154874011
Test: ChoreographerNativeTest
Test: Manually verify that HWUI is receiving callbacks
Change-Id: I992c247fd16ef414f94a259bbd300bea3e4c9467
Diffstat (limited to 'core/jni/include')
-rw-r--r-- | core/jni/include/android_runtime/AndroidRuntime.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/jni/include/android_runtime/AndroidRuntime.h b/core/jni/include/android_runtime/AndroidRuntime.h index 235127266926..d86d9340e667 100644 --- a/core/jni/include/android_runtime/AndroidRuntime.h +++ b/core/jni/include/android_runtime/AndroidRuntime.h @@ -19,15 +19,14 @@ #ifndef _RUNTIME_ANDROID_RUNTIME_H #define _RUNTIME_ANDROID_RUNTIME_H -#include <utils/Errors.h> #include <binder/IBinder.h> -#include <utils/String8.h> +#include <jni.h> +#include <pthread.h> +#include <utils/Errors.h> #include <utils/String16.h> +#include <utils/String8.h> #include <utils/Vector.h> #include <utils/threads.h> -#include <pthread.h> -#include <jni.h> - namespace android { @@ -154,6 +153,6 @@ private: static int javaThreadShell(void* args); }; -} +} // namespace android #endif |