diff options
author | Doug Horn <doughorn@google.com> | 2021-02-17 10:16:37 -0800 |
---|---|---|
committer | Doug Horn <doughorn@google.com> | 2021-02-17 11:05:46 -0800 |
commit | 37e1fc76c7618611154984c35b43cccef819d384 (patch) | |
tree | 094e643c7a126542040fe9e45de7e7197560c1d5 /stream-servers/glestranslator | |
parent | dd700f636aa5cf27a3186b577bcc5e739623529b (diff) | |
download | vulkan-cereal-37e1fc76c7618611154984c35b43cccef819d384.tar.gz |
Always use direct composition.
Bug: 180510301
Test: Flip mode is respected.
Change-Id: Id22e74057a6da89ae505d61b5abe5280bb28f2b1
Diffstat (limited to 'stream-servers/glestranslator')
-rw-r--r-- | stream-servers/glestranslator/EGL/EglOsApi_egl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stream-servers/glestranslator/EGL/EglOsApi_egl.cpp b/stream-servers/glestranslator/EGL/EglOsApi_egl.cpp index b92b1ebd..77ba6bbe 100644 --- a/stream-servers/glestranslator/EGL/EglOsApi_egl.cpp +++ b/stream-servers/glestranslator/EGL/EglOsApi_egl.cpp @@ -496,7 +496,8 @@ Surface* EglOsEglDisplay::createWindowSurface(PixelFormat* pf, EGLNativeWindowType win) { D("%s\n", __FUNCTION__); std::vector<EGLint> surface_attribs; - if (android::base::getEnvironmentVariable("ANDROID_EMUGL_ANGLE_DIRECT_COMPOSITION") == "1") { + auto exts = mDispatcher.eglQueryString(mDisplay, EGL_EXTENSIONS); + if (exts != nullptr && emugl::hasExtension(exts, "EGL_ANGLE_direct_composition")) { surface_attribs.push_back(EGL_DIRECT_COMPOSITION_ANGLE); surface_attribs.push_back(EGL_TRUE); } |