diff options
Diffstat (limited to 'libs/hwui/renderthread/CanvasContext.cpp')
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index aed0620166dd..bfa2ae7e72ff 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -290,7 +290,7 @@ bool CanvasContext::isSwapChainStuffed() { // If there's a multi-frameInterval gap we effectively already dropped a frame, // so consider the queue healthy. - if (swapA.swapCompletedTime - swapB.swapCompletedTime > frameInterval * 3) { + if (std::abs(swapA.swapCompletedTime - swapB.swapCompletedTime) > frameInterval * 3) { return false; } |