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
This commit is contained in:
committed by
Android (Google) Code Review
commit
eebf168e43
@@ -289,11 +289,11 @@ void CanvasContext::doFrame() {
|
|||||||
|
|
||||||
ATRACE_CALL();
|
ATRACE_CALL();
|
||||||
|
|
||||||
|
nsecs_t vsync = mRenderThread.timeLord().computeFrameTimeNanos();
|
||||||
int64_t frameInfo[UI_THREAD_FRAME_INFO_SIZE];
|
int64_t frameInfo[UI_THREAD_FRAME_INFO_SIZE];
|
||||||
UiFrameInfoBuilder(frameInfo)
|
UiFrameInfoBuilder(frameInfo)
|
||||||
.addFlag(FrameInfoFlags::RTAnimation)
|
.addFlag(FrameInfoFlags::RTAnimation)
|
||||||
.setVsync(mRenderThread.timeLord().computeFrameTimeNanos(),
|
.setVsync(vsync, vsync);
|
||||||
mRenderThread.timeLord().latestVsync());
|
|
||||||
|
|
||||||
TreeInfo info(TreeInfo::MODE_RT_ONLY, mRenderThread.renderState());
|
TreeInfo info(TreeInfo::MODE_RT_ONLY, mRenderThread.renderState());
|
||||||
prepareTree(info, frameInfo, systemTime(CLOCK_MONOTONIC));
|
prepareTree(info, frameInfo, systemTime(CLOCK_MONOTONIC));
|
||||||
|
|||||||
Reference in New Issue
Block a user