Home | History | Annotate | Download | only in android

Lines Matching refs:choreographer

17 #define LOG_TAG "Choreographer"
24 #include <android/choreographer.h>
50 class Choreographer : public DisplayEventDispatcher, public MessageHandler {
61 static Choreographer* getForThread();
64 virtual ~Choreographer() = default;
67 Choreographer(const sp<Looper>& looper);
68 Choreographer(const Choreographer&) = delete;
85 static thread_local Choreographer* gChoreographer;
86 Choreographer* Choreographer::getForThread() {
93 gChoreographer = new Choreographer(looper);
103 Choreographer::Choreographer(const sp<Looper>& looper) :
107 void Choreographer::postFrameCallback(AChoreographer_frameCallback cb, void* data) {
111 void Choreographer::postFrameCallbackDelayed(
132 void Choreographer::scheduleCallbacks() {
136 ALOGV("choreographer %p ~ scheduling vsync", this);
143 void Choreographer::dispatchVsync(nsecs_t timestamp, int32_t id, uint32_t) {
145 ALOGV("choreographer %p ~ ignoring vsync signal for non-main display (id=%d)", this, id);
163 void Choreographer::dispatchHotplug(nsecs_t, int32_t id, bool connected) {
164 ALOGV("choreographer %p ~ received hotplug event (id=%" PRId32 ", connected=%s), ignoring.",
168 void Choreographer::handleMessage(const Message& message) {
183 using android::Choreographer;
185 static inline Choreographer* AChoreographer_to_Choreographer(AChoreographer* choreographer) {
186 return reinterpret_cast<Choreographer*>(choreographer);
189 static inline AChoreographer* Choreographer_to_AChoreographer(Choreographer* choreographer) {
190 return reinterpret_cast<AChoreographer*>(choreographer);
194 return Choreographer_to_AChoreographer(Choreographer::getForThread());
197 void AChoreographer_postFrameCallback(AChoreographer* choreographer,
199 AChoreographer_to_Choreographer(choreographer)->postFrameCallback(callback, data);
201 void AChoreographer_postFrameCallbackDelayed(AChoreographer* choreographer,
203 AChoreographer_to_Choreographer(choreographer)->postFrameCallbackDelayed(