Reverts "[Impeller] enable ahb swapchain on emulators. (#54019)" (flutter/engine#54022)
Reverts: flutter/engine#54019 Initiated by: jonahwilliams Reason for reverting: does not work on CI emulators Original PR Author: jonahwilliams Reviewed By: {chinmaygarde} This change reverts the following previous change: Fixes https://github.com/flutter/flutter/issues/147533 This works now that the backpressure issue is fixed. Maybe the wait semaphore didn't work, but the CPU wait on the fence does.
This commit is contained in:
@@ -55,8 +55,11 @@ std::shared_ptr<SwapchainVK> SwapchainVK::Create(
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// TODO(147533): AHB swapchains on emulators are not functional.
|
||||
const auto emulator = ContextVK::Cast(*context).GetDriverInfo()->IsEmulator();
|
||||
|
||||
// Try AHB swapchains first.
|
||||
if (AHBSwapchainVK::IsAvailableOnPlatform()) {
|
||||
if (!emulator && AHBSwapchainVK::IsAvailableOnPlatform()) {
|
||||
auto ahb_swapchain = std::shared_ptr<AHBSwapchainVK>(new AHBSwapchainVK(
|
||||
context, //
|
||||
window.GetHandle(), //
|
||||
|
||||
Reference in New Issue
Block a user