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

Commit 8d0c5bd2 authored by Alec Mouri's avatar Alec Mouri
Browse files

[HWUI] hook in ANativeWindow_getLastDequeueStartTime

Bug: 137012798
Test: builds
Change-Id: I37fd2a7c40398053082f606f0a085db0a239e2e0
parent 7ea41b69
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -484,7 +484,7 @@ void CanvasContext::draw() {
        swap.swapCompletedTime = systemTime(SYSTEM_TIME_MONOTONIC);
        swap.vsyncTime = mRenderThread.timeLord().latestVsync();
        if (didDraw) {
            nsecs_t dequeueStart = mNativeSurface->getLastDequeueStartTime();
            nsecs_t dequeueStart = ANativeWindow_getLastDequeueStartTime(mNativeSurface.get());
            if (dequeueStart < mCurrentFrameInfo->get(FrameInfoIndex::SyncStart)) {
                // Ignoring dequeue duration as it happened prior to frame render start
                // and thus is not part of the frame.
+1 −3
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ public:

    int query(int what, int* value) const { return mSurface->query(what, value); }

    nsecs_t getLastDequeueStartTime() const { return mSurface->getLastDequeueStartTime(); }

    uint64_t getNextFrameNumber() const { return mSurface->getNextFrameNumber(); }

    int getAndClearError() {
+1 −1

File changed.

Contains only whitespace changes.