diff options
| author | 2018-06-04 19:34:00 -0700 | |
|---|---|---|
| committer | 2018-06-04 19:34:00 -0700 | |
| commit | d490e788f170aefed957753dd1f5f9e05500970e (patch) | |
| tree | 19fcf5b330166f9406e11fd6e468e692ee15c16e | |
| parent | 877328afa9139887de27123a3ea3fcaf37a860d3 (diff) | |
| parent | 2dd3d8cbefefc5beed04f8f3091a04c47a173b0e (diff) | |
Merge "cts case com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in modue CtsIncidentHostTestCases failed"
am: 2dd3d8cbef
Change-Id: I37d35302041a8759eae91e616fa6f3d5c7fdf401
| -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; } |