summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-10-15 01:10:42 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-10-15 01:10:42 +0000
commitfb4ede1992df0344082bbdac60bcbc2a3a0a65ba (patch)
treea8499824dddf4e84b44b956f0486b4d87b7a1486 /libs/hwui/renderthread/RenderThread.cpp
parentba9f549606a4ad92a212f4abc09831f2661541d1 (diff)
parentd892024042658b9cf4a85ebb23fff22ba1474d24 (diff)
Snap for 6906414 from d892024042658b9cf4a85ebb23fff22ba1474d24 to sc-release
Change-Id: I9a7cbc9e3019d555430169be7a950a9e8ededf7c
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
-rw-r--r--libs/hwui/renderthread/RenderThread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderThread.cpp b/libs/hwui/renderthread/RenderThread.cpp
index 9371656eda7f..a101d46f6da0 100644
--- a/libs/hwui/renderthread/RenderThread.cpp
+++ b/libs/hwui/renderthread/RenderThread.cpp
@@ -52,8 +52,9 @@ static JVMAttachHook gOnStartHook = nullptr;
void RenderThread::frameCallback(int64_t frameTimeNanos, void* data) {
RenderThread* rt = reinterpret_cast<RenderThread*>(data);
int64_t vsyncId = AChoreographer_getVsyncId(rt->mChoreographer);
+ int64_t frameDeadline = AChoreographer_getFrameDeadline(rt->mChoreographer);
rt->mVsyncRequested = false;
- if (rt->timeLord().vsyncReceived(frameTimeNanos, frameTimeNanos, vsyncId) &&
+ if (rt->timeLord().vsyncReceived(frameTimeNanos, frameTimeNanos, vsyncId, frameDeadline) &&
!rt->mFrameCallbackTaskPending) {
ATRACE_NAME("queue mFrameCallbackTask");
rt->mFrameCallbackTaskPending = true;