Loading libs/hwui/renderthread/RenderTask.h +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public: ANDROID_API virtual void run() = 0; RenderTask* mNext; nsecs_t mRunAt; nsecs_t mRunAt; // nano-seconds on the SYSTEM_TIME_MONOTONIC clock }; class SignalingRenderTask : public RenderTask { Loading libs/hwui/renderthread/RenderThread.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -128,7 +128,8 @@ bool RenderThread::threadLoop() { if (nextWakeup == LLONG_MAX) { timeoutMillis = -1; } else { timeoutMillis = nextWakeup - systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t timeoutNanos = nextWakeup - systemTime(SYSTEM_TIME_MONOTONIC); timeoutMillis = nanoseconds_to_milliseconds(timeoutNanos); if (timeoutMillis < 0) { timeoutMillis = 0; } Loading @@ -149,7 +150,7 @@ void RenderThread::queue(RenderTask* task) { void RenderThread::queueDelayed(RenderTask* task, int delayMs) { nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); task->mRunAt = now + delayMs; task->mRunAt = now + milliseconds_to_nanoseconds(delayMs); queue(task); } Loading Loading
libs/hwui/renderthread/RenderTask.h +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ public: ANDROID_API virtual void run() = 0; RenderTask* mNext; nsecs_t mRunAt; nsecs_t mRunAt; // nano-seconds on the SYSTEM_TIME_MONOTONIC clock }; class SignalingRenderTask : public RenderTask { Loading
libs/hwui/renderthread/RenderThread.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -128,7 +128,8 @@ bool RenderThread::threadLoop() { if (nextWakeup == LLONG_MAX) { timeoutMillis = -1; } else { timeoutMillis = nextWakeup - systemTime(SYSTEM_TIME_MONOTONIC); nsecs_t timeoutNanos = nextWakeup - systemTime(SYSTEM_TIME_MONOTONIC); timeoutMillis = nanoseconds_to_milliseconds(timeoutNanos); if (timeoutMillis < 0) { timeoutMillis = 0; } Loading @@ -149,7 +150,7 @@ void RenderThread::queue(RenderTask* task) { void RenderThread::queueDelayed(RenderTask* task, int delayMs) { nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); task->mRunAt = now + delayMs; task->mRunAt = now + milliseconds_to_nanoseconds(delayMs); queue(task); } Loading