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

Commit 4fa74845 authored by Rachel Lee's avatar Rachel Lee
Browse files

Pass start time from HWUI canvas context.

Bug: 198192003
Test: atest CanvasContextTests
Change-Id: If1dc10c001e9a8c493f491abfe5022889ae5544b
parent e1e77cca
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -526,8 +526,9 @@ nsecs_t CanvasContext::draw() {
        if (vsyncId != UiFrameInfoBuilder::INVALID_VSYNC_ID) {
            const auto inputEventId =
                    static_cast<int32_t>(mCurrentFrameInfo->get(FrameInfoIndex::InputEventId));
            native_window_set_frame_timeline_info(mNativeSurface->getNativeWindow(), vsyncId,
                                                  inputEventId);
            native_window_set_frame_timeline_info(
                    mNativeSurface->getNativeWindow(), vsyncId, inputEventId,
                    mCurrentFrameInfo->get(FrameInfoIndex::FrameStartTime));
        }
    }