summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2019-07-17 11:12:32 -0700
committerJohn Reck <jreck@google.com>2019-07-18 10:48:49 -0700
commit3f333d6d72fd2d91a68b2fd1fd2ca28291e6b1d9 (patch)
treecb3170834f800b8539618a75540a0eeaadbebb2c
parent32cc70651986a3e08fa76a92dec8e3e84c1e1fa8 (diff)
downloadbase-3f333d6d72fd2d91a68b2fd1fd2ca28291e6b1d9.tar.gz
Increase dequeueBuffer timeout
Timeout recovery isn't working properly, so increase it to avoid any false-positives from something like a slow screen-on Bug: 137509524 Test: none Change-Id: Ic4fae04b41f71600479f9557e334f67c27851db4
-rw-r--r--libs/hwui/renderthread/CanvasContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp
index f326ce8d23e9..9898a1c30856 100644
--- a/libs/hwui/renderthread/CanvasContext.cpp
+++ b/libs/hwui/renderthread/CanvasContext.cpp
@@ -148,7 +148,8 @@ void CanvasContext::setSurface(sp<Surface>&& surface) {
if (surface) {
mNativeSurface = new ReliableSurface{std::move(surface)};
- mNativeSurface->setDequeueTimeout(500_ms);
+ // TODO: Fix error handling & re-shorten timeout
+ mNativeSurface->setDequeueTimeout(4000_ms);
} else {
mNativeSurface = nullptr;
}