Merge "In CanvasContext::doFrame, make a separate call to computeFrameTimeNanos and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments." into cw-e-dev am: eebf168e43 am: e0845e8629
am: 6222bb0f6a
* commit '6222bb0f6a772c8fa1dc402740399b0ad1017520':
In CanvasContext::doFrame, make a separate call to computeFrameTimeNanos and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments.
This commit is contained in:
@@ -288,11 +288,11 @@ void CanvasContext::doFrame() {
|
||||
|
||||
ATRACE_CALL();
|
||||
|
||||
nsecs_t vsync = mRenderThread.timeLord().computeFrameTimeNanos();
|
||||
int64_t frameInfo[UI_THREAD_FRAME_INFO_SIZE];
|
||||
UiFrameInfoBuilder(frameInfo)
|
||||
.addFlag(FrameInfoFlags::RTAnimation)
|
||||
.setVsync(mRenderThread.timeLord().computeFrameTimeNanos(),
|
||||
mRenderThread.timeLord().latestVsync());
|
||||
.setVsync(vsync, vsync);
|
||||
|
||||
TreeInfo info(TreeInfo::MODE_RT_ONLY, mRenderThread.renderState());
|
||||
prepareTree(info, frameInfo, systemTime(CLOCK_MONOTONIC));
|
||||
|
||||
Reference in New Issue
Block a user