Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7915175 authored by Matthew Bouyack's avatar Matthew Bouyack Committed by android-build-merger
Browse files

Merge "In CanvasContext::doFrame, make a separate call to...

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: eebf168e am: e0845e86 am: 6222bb0f
am: 099bd9ca

* commit '099bd9ca':
  In CanvasContext::doFrame, make a separate call to computeFrameTimeNanos and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments.
parents 9b974bf2 099bd9ca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -512,11 +512,11 @@ void CanvasContext::doFrame() {
void CanvasContext::prepareAndDraw(RenderNode* node) {
    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, *this);
    prepareTree(info, frameInfo, systemTime(CLOCK_MONOTONIC), node);