Merge "cts case com.android.server.cts.GraphicsStatsValidationTest#testDaveyDrawFrame in modue CtsIncidentHostTestCases failed"

am: 2dd3d8cbef

Change-Id: I37d35302041a8759eae91e616fa6f3d5c7fdf401
This commit is contained in:
Yu Jia
2018-06-04 19:34:00 -07:00
committed by android-build-merger

View File

@@ -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;
}