Commit 3f21fcb9 by Courtney Goeltzenleuchter Committed by Commit Bot

Set ANGLE default backend to Vulkan

If the Vulkan backend is available, use it on Android. This way ANGLE built for the ANGLE apk always uses Vulkan. ANGLE built for use in Chrome keeps GL. At least for now. Bug=angleproject:2418 Change-Id: Ic7796c74821a44b856a596d31b3de09e7ca47ede Reviewed-on: https://chromium-review.googlesource.com/c/1265504Reviewed-by: 's avatarIan Elliott <ianelliott@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarYuly Novikov <ynovikov@google.com> Commit-Queue: Courtney Goeltzenleuchter <courtneygo@google.com>
parent 6f591c97
...@@ -150,7 +150,11 @@ rx::DisplayImpl *CreateDisplayFromAttribs(const AttributeMap &attribMap, const D ...@@ -150,7 +150,11 @@ rx::DisplayImpl *CreateDisplayFromAttribs(const AttributeMap &attribMap, const D
#elif defined(ANGLE_USE_OZONE) #elif defined(ANGLE_USE_OZONE)
impl = new rx::DisplayOzone(state); impl = new rx::DisplayOzone(state);
#elif defined(ANGLE_PLATFORM_ANDROID) #elif defined(ANGLE_PLATFORM_ANDROID)
#if defined(ANGLE_ENABLE_VULKAN)
impl = new rx::DisplayVkAndroid(state);
#else
impl = new rx::DisplayAndroid(state); impl = new rx::DisplayAndroid(state);
#endif
#else #else
// No display available // No display available
UNREACHABLE(); UNREACHABLE();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment