summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2016-08-05 10:50:36 -0700
committerJohn Reck <jreck@google.com>2016-08-05 10:50:36 -0700
commit70e89c9c376bf5bb20498c5c952cf665b2cd7375 (patch)
tree7dcc509bd14579306d43fc3e279becf5c8a6df01 /libs
parentb11cc6cbd370a991eea4d9fecaa1f0eee5f9002f (diff)
downloadandroid-frameworks-base-70e89c9c376bf5bb20498c5c952cf665b2cd7375.tar.gz
android-frameworks-base-70e89c9c376bf5bb20498c5c952cf665b2cd7375.tar.xz
Ensure Dequeue/Queue duration is always set
Bug: 30662749 Change-Id: I35a4c26ce78536fc7a506ec2f92a8b9eecb12ec2
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp3
1 files changed, 3 insertions, 0 deletions
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 @@ 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?