From d65ef5bdc3065ff8183c473c908f3ffc3b675cb8 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Wed, 1 May 2024 09:14:05 -0700 Subject: [PATCH] [dart:ui] expose renderer selection from Impeller. --- lib/ui/natives.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui/natives.dart b/lib/ui/natives.dart index 830827b3dc772..66cfffd79e6b6 100644 --- a/lib/ui/natives.dart +++ b/lib/ui/natives.dart @@ -108,8 +108,9 @@ typedef _ScheduleImmediateClosure = void Function(void Function()); @pragma('vm:entry-point') _ScheduleImmediateClosure _getScheduleMicrotaskClosure() => _scheduleMicrotask; -// Used internally to indicate whether the Engine is using Impeller for -// rendering. +/// Whether the Engine is using the Impeller rendering engine. +bool get isImpellerEnabled => _impellerEnabled; + @pragma('vm:entry-point') bool _impellerEnabled = false;