diff options
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.h')
-rw-r--r-- | libs/hwui/renderthread/DrawFrameTask.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.h b/libs/hwui/renderthread/DrawFrameTask.h index 0037a0f4306d..696cfaef3cd7 100644 --- a/libs/hwui/renderthread/DrawFrameTask.h +++ b/libs/hwui/renderthread/DrawFrameTask.h @@ -45,6 +45,7 @@ enum { UIRedrawRequired = 1 << 0, LostSurfaceRewardIfFound = 1 << 1, ContextIsStopped = 1 << 2, + FrameDropped = 1 << 3, }; } @@ -77,6 +78,10 @@ public: mFrameCallback = std::move(callback); } + void setFrameCompleteCallback(std::function<void(int64_t)>&& callback) { + mFrameCompleteCallback = std::move(callback); + } + private: void postAndWait(); bool syncFrameState(TreeInfo& info); @@ -101,6 +106,7 @@ private: int64_t mFrameInfo[UI_THREAD_FRAME_INFO_SIZE]; std::function<void(int64_t)> mFrameCallback; + std::function<void(int64_t)> mFrameCompleteCallback; }; } /* namespace renderthread */ |