Ensure Dequeue/Queue duration is always set

am: 70e89c9c37

Change-Id: I4d4543d0f65d5d2826518e7975934ce7a5d7232d
This commit is contained in:
John Reck
2016-08-08 15:00:15 +00:00
committed by android-build-merger

View File

@@ -578,6 +578,9 @@ void CanvasContext::draw() {
= swap.queueDuration;
mHaveNewSurface = false;
mFrameNumber = -1;
} else {
mCurrentFrameInfo->set(FrameInfoIndex::DequeueBufferDuration) = 0;
mCurrentFrameInfo->set(FrameInfoIndex::QueueBufferDuration) = 0;
}
// TODO: Use a fence for real completion?