From 4f31c558bcd4ddcdbb0f2fe4321e6b083a604a77 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 7 Mar 2022 10:06:09 -0800 Subject: [PATCH] [windows] use angle fast path on d3d11 backend (flutter/engine#31830) --- .../flutter/shell/platform/windows/angle_surface_manager.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc b/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc index 83dac6bd85a..28d41cfc631 100644 --- a/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc +++ b/engine/src/flutter/shell/platform/windows/angle_surface_manager.cc @@ -95,6 +95,12 @@ bool AngleSurfaceManager::Initialize() { // behalf of the application when it gets suspended. EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE, EGL_TRUE, + + // This extension allows angle to render directly on a D3D swapchain + // in the correct orientation on D3D11. + EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE, + EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE, + EGL_NONE, };