diff options
| author | 2018-06-05 01:15:16 +0000 | |
|---|---|---|
| committer | 2018-06-05 01:15:16 +0000 | |
| commit | 2dd3d8cbefefc5beed04f8f3091a04c47a173b0e (patch) | |
| tree | 4e171609bf5508688981044b8327d40f0283efc3 | |
| parent | 86e94acfa4aa643f8715e0d454ba2b63a73805ad (diff) | |
| parent | e57493ab1907c5f1685bbf02b33d83f2d2ba3e56 (diff) | |
Merge "cts case com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in modue CtsIncidentHostTestCases failed"
| -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 5d7f5948b0ec..b8815b56ecee 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -295,7 +295,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; } |