16 {
17 String[] engineArguments = null;
18 assert arguments != null;
19 if (
"true".
equals(arguments.getString(
"enable-impeller"))) {
20
21 engineArguments =
22 new String[] {
23 "--enable-impeller=true",
24 "--impeller-backend=" + arguments.getString("impeller-backend", "vulkan")
25 };
26 }
27 FlutterRenderer.debugDisableSurfaceClear = true;
28 if (
"true".
equals(arguments.getString(
"force-surface-producer-surface-texture"))) {
29
30 FlutterRenderer.debugForceSurfaceProducerGlTextures = true;
31 }
32
33 FlutterInjector.instance().flutterLoader().startInitialization(getTargetContext());
34 FlutterInjector.instance()
35 .flutterLoader()
36 .ensureInitializationComplete(getTargetContext(), engineArguments);
37 ScreenshotUtil.onCreate();
38 super.onCreate(arguments);
39 }
bool equals(SkDrawable *a, SkDrawable *b)