summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/EglManager.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-10-26 13:52:52 -0700
committerJohn Reck <jreck@google.com>2015-10-26 13:52:52 -0700
commitc2547fa6f9a0f4247b35edcee69f3c3cc3510b1a (patch)
tree23aeacf0a2854276db75d0efcc48a408a7931b2d /libs/hwui/renderthread/EglManager.cpp
parentb1423ddee906333d1ac3ec46226cd210e7648e10 (diff)
eglSwapBuffers can also return EGL_BAD_NATIVE_WINDOW
Bug: 25017107 Change-Id: I545a746ba89d577de5769bc3e7dd335a100638c0
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r--libs/hwui/renderthread/EglManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp
index b353ae6ec1fc..485759bd1a50 100644
--- a/libs/hwui/renderthread/EglManager.cpp
+++ b/libs/hwui/renderthread/EglManager.cpp
@@ -333,7 +333,7 @@ bool EglManager::swapBuffers(const Frame& frame, const SkRect& screenDirty) {
if (CC_LIKELY(err == EGL_SUCCESS)) {
return true;
}
- if (err == EGL_BAD_SURFACE) {
+ if (err == EGL_BAD_SURFACE || err == EGL_BAD_NATIVE_WINDOW) {
// For some reason our surface was destroyed out from under us
// This really shouldn't happen, but if it does we can recover easily
// by just not trying to use the surface anymore