diff --git a/engine/src/flutter/build/config/BUILD.gn b/engine/src/flutter/build/config/BUILD.gn index e257b3593f..0af90cd06d 100644 --- a/engine/src/flutter/build/config/BUILD.gn +++ b/engine/src/flutter/build/config/BUILD.gn @@ -103,6 +103,9 @@ config("feature_flags") { if (use_aura) { defines += [ "USE_AURA=1" ] } + if (use_glfw) { + defines += [ "USE_GLFW=1" ] + } if (use_pango) { defines += [ "USE_PANGO=1" ] } diff --git a/engine/src/flutter/build/config/ui.gni b/engine/src/flutter/build/config/ui.gni index db4168689f..c2dff4a87d 100644 --- a/engine/src/flutter/build/config/ui.gni +++ b/engine/src/flutter/build/config/ui.gni @@ -20,6 +20,12 @@ declare_args() { # that does not require X11. use_ozone = false + # Indicates if GLFW is enabled. GLFW is an abstraction layer for the + # windowing system and OpenGL rendering, providing cross-platform support + # for creating windows and OpenGL surfaces and contexts, and handling + # window system events and input. + use_glfw = false + # Support ChromeOS touchpad gestures with ozone. use_evdev_gestures = false @@ -51,7 +57,7 @@ ui_compositor_image_transport = use_aura && is_linux use_default_render_theme = use_aura || is_linux # Indicates if the UI toolkit depends on X11. -use_x11 = is_linux && !use_ozone +use_x11 = is_linux && !use_ozone && !use_glfw use_ozone_evdev = use_ozone