summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/EglManager.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2017-06-14 20:25:03 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-14 20:25:03 +0000
commitf0d3971021c26baa0e0b1721e71c99a2f98dae1b (patch)
treedfdb70549e99d198e9cd2c3fe4bee4820fd7b795 /libs/hwui/renderthread/EglManager.cpp
parent321163990eef7f9cc4cbbe054fc3b6e21717a558 (diff)
parent31443a17e8c615fdad2afa06d5711d6eaac129b3 (diff)
Merge "Add a workaround for simulate secondary display" into oc-dev
am: 31443a17e8 Change-Id: Ic63e4f48ec55bce9f51089bc41481ab8805ae8c7
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r--libs/hwui/renderthread/EglManager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp
index 44af5fd8d0dd..ed3070887b8b 100644
--- a/libs/hwui/renderthread/EglManager.cpp
+++ b/libs/hwui/renderthread/EglManager.cpp
@@ -279,6 +279,9 @@ bool EglManager::makeCurrent(EGLSurface surface, EGLint* errOut) {
}
}
mCurrentSurface = surface;
+ if (Properties::disableVsync) {
+ eglSwapInterval(mEglDisplay, 0);
+ }
return true;
}