Commit Graph

672 Commits

Author SHA1 Message Date
Ryan Macnak fb709e25e3 [fuchsia] Plumbing for sharing between AOT snapshots. (#5351) 2018-05-24 13:24:14 -07:00
Ryan Macnak 86d96fd0ce Reapply "Don't link the core snapshot in the Android engine." (#5353)
Add back the core snapshot to runtime_unittests and embedder_unittests.
2018-05-23 17:09:51 -07:00
Ryan Macnak 2e9ff1f09a Revert "Don't link the core snapshot in the Android engine. (#5348)" (#5352)
This reverts commit e0d4c46413.
2018-05-23 16:11:57 -07:00
Michael Goderbauer 47f4a2aad4 Remove assert for unsupported SemanticsEvents (#5349)
Not all platforms are expected to handle all SemanticsEvents. Therefore, it is ok to just drop unsupported events on the floor.
2018-05-23 16:05:15 -07:00
Ryan Macnak e0d4c46413 Don't link the core snapshot in the Android engine. (#5348)
Allows one to use a different core snapshot without a custom engine build by just packaging a different one in the APK.
2018-05-23 15:56:28 -07:00
Martin Kustermann 812423da5e Restore functionality to run from .so file on Android (#5278)
Flutter AOT builds can be done on Android using .so files (instead of
separate instruction/data snapshots) using the `--build-shared-library`
flag.

Running from .so files stopped working after the engine refactoring in
58e84c8bf0, which this CL restores.

Issue https://github.com/flutter/flutter/issues/17236
2018-05-23 10:11:44 +02:00
Yegor f876bd5710 split children into two ordered lists: traversal and hit test (#5091)
* split `children` into two ordered lists: traversal and hit test

* address comments

* reduce node object byte size

* link to DebugSemanticsDumpOrder
2018-05-21 17:44:23 -07:00
Brian Osman 5ab81fdab3 Set fPreferExternalImagesOverES3 option in Skia (#5331)
This causes Skia to fall back to the ES2 shading language when the GL
driver doesn't clearly communicate that it supports the ES3 external
image extension. Doing so ensures that video playback (which relies on
external images) works on many more devices.
2018-05-21 14:41:56 -04:00
Michael Goderbauer eb4d823557 Re-add ACTION_LONG_CLICK for Android a11y (#5330) 2018-05-21 11:29:50 -07:00
Chinmay Garde 5cba5774c6 Break the FXL from flutter/assets. (#5316) 2018-05-18 17:04:36 -07:00
Chinmay Garde 299a7c2502 Remove support for reading FLX archives from engine. (#5305)
The embedders have moved on already. This also removes a //garnet dependency on zlib wrappers.
2018-05-18 11:56:37 -07:00
Alexander Aprelev 65d52d94fd Revert "Delegate AppDelegate life-cycle callbacks to plugins via separate object (#5173)" (#5294)
This reverts commit 597fa9ed45 as it broke
mac engine build bot.
2018-05-17 14:11:12 -07:00
Sigurd Meldgaard 597fa9ed45 Delegate AppDelegate life-cycle callbacks to plugins via separate object (#5173)
* Move the handling of delegating AppDelegate callback out of FlutterAppDelegate.

Also moves the plugin registry to FlutterViewController. So each view-controller will handle its
own plugins.

This is intended to simplify including one or more Flutter views in an existing iOS app and giving
more precise control of plugin registration.

Fixes: https://github.com/flutter/flutter/issues/16539

* formatting

* Update license golden file
2018-05-17 13:13:22 +02:00
Michael Goderbauer a7b44d4ab0 Only send a11y events if a11y is turned on (#5281) 2018-05-16 13:12:56 -07:00
Ryan Macnak 30c649dd74 [fuchsia] Teach engine how to set up an isolate from a list of kernel files. (#5210) 2018-05-16 10:09:53 -07:00
Jason Simmons d1d5497999 Drain any pending work on the IO thread before shutting down the platform view (#5272)
iOS does not allow usage of OpenGL ES APIs when the app has been moved to the
background.  With this change, the shell will wait until pending IO thread tasks
complete and the Skia unref queue is drained before proceeding with shutdown.

See https://github.com/flutter/flutter/issues/17511
2018-05-15 17:40:25 -07:00
Ryan Macnak e32e390328 Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (#5269)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 16:13:21 -07:00
Chinmay Garde 99b3262564 Mark the linux group testonly (#5268) 2018-05-15 13:49:42 -07:00
Chinmay Garde 17a71f6969 Build the flutter tester on Linux in the default group. (#5267) 2018-05-15 13:39:14 -07:00
Ryan Macnak 63fdebf209 Revert "Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (#5259)" (#5266)
This reverts commit 755dbeef4a.
2018-05-15 13:26:51 -07:00
Ryan Macnak 755dbeef4a Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (#5259)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 12:57:01 -07:00
Chinmay Garde 73a0014b7e Create an empty group that the Fuchsia bots use to determine the root_out_dir. (#5265)
The Fuchsia bots seem to reference this target to figure out the root_out_directory https://fuchsia.googlesource.com/build/+/master/dart/dart_test.gni#67. Note that the presence of the flutter_tester binary location itself is not depended on. Instead, the target is used to infer the directory containing the flutter_tester after a build.

Patching the //build repository in Fuchsia would mean making the tree red till a //topaz patch lands. To avoid doing this, we add back the missing reference.
2018-05-15 12:50:10 -07:00
Jason Simmons c7ab033f9e Support a model where the application creates a FlutterNativeView that is never destroyed (#5256)
This allows applications to start a Flutter engine instance during app startup
and keep it running throughout the app process' lifetime.

FlutterActivity subclasses can override createFlutterNativeView to provide a
preinitialized FlutterNativeView instance and override retainFlutterNativeView
to signal that the FlutterNativeView should be kept alive when the activity
is destroyed.
2018-05-15 12:05:54 -07:00
Chinmay Garde c3c6c369ae Create a session presentation backed Vsync waiter on Fuchsia. (#5255) 2018-05-14 16:51:19 -07:00
Chinmay Garde 613abf2d8a Terminate the engine immediately if there are isolate launch errors. (#5244) 2018-05-11 18:32:35 -07:00