From 574d59460009891d79db434055c2e7ed509ab169 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 24 Mar 2016 15:40:29 -0700 Subject: [PATCH] Add GLFW support to //ui/gl This patch is the first step towards getting the GLFW configuration up and running. --- engine/src/flutter/build/config/BUILD.gn | 3 +++ engine/src/flutter/build/config/ui.gni | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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