From 1d0d669e8c9adf7c195ad7d08e5414cb871aa5d7 Mon Sep 17 00:00:00 2001 From: Casey Hillers Date: Mon, 15 May 2023 03:55:33 +0000 Subject: [PATCH] [Impeller] Include AndroidSurfaceVulkanImpeller behind a flag * Google Testing currently doesn't support vulkan --- shell/platform/android/platform_view_android.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shell/platform/android/platform_view_android.cc b/shell/platform/android/platform_view_android.cc index 769f1a0feae8f..4eba5cdc9b8ed 100644 --- a/shell/platform/android/platform_view_android.cc +++ b/shell/platform/android/platform_view_android.cc @@ -51,9 +51,16 @@ std::unique_ptr AndroidSurfaceFactoryImpl::CreateSurface() { } case AndroidRenderingAPI::kVulkan: FML_DCHECK(enable_impeller_); - return std::make_unique( + // TODO(kaushikiska@): Enable this after wiring a preference for Vulkan + // backend. +#if false + return std::make_unique( std::static_pointer_cast( android_context_)); +#else + return std::make_unique( + std::static_pointer_cast(android_context_)); +#endif default: FML_DCHECK(false); return nullptr;