commit | 70e89c9c376bf5bb20498c5c952cf665b2cd7375 | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Aug 05 10:50:36 2016 -0700 |
committer | John Reck <jreck@google.com> | Fri Aug 05 10:50:36 2016 -0700 |
tree | 7dcc509bd14579306d43fc3e279becf5c8a6df01 | |
parent | b11cc6cbd370a991eea4d9fecaa1f0eee5f9002f [diff] [blame] |
Ensure Dequeue/Queue duration is always set Bug: 30662749 Change-Id: I35a4c26ce78536fc7a506ec2f92a8b9eecb12ec2
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index dafe1d1..dcaec42 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -578,6 +578,9 @@ = swap.queueDuration; mHaveNewSurface = false; mFrameNumber = -1; + } else { + mCurrentFrameInfo->set(FrameInfoIndex::DequeueBufferDuration) = 0; + mCurrentFrameInfo->set(FrameInfoIndex::QueueBufferDuration) = 0; } // TODO: Use a fence for real completion?