Commit Graph

159 Commits

Author SHA1 Message Date
Benjamin Lerman 32270c7836 Update API to use sized vmo instead of raw vmo. 2017-11-21 10:09:20 +01:00
Ian McKellar d917c35e72 Allow Flutter apps on Fuchsia to shut down cleanly (#4366)
The UIDartState is now always owned by the isolate and always freed in
the isolate cleanup callback.

In the isolate shutdown callback, if the isolate being shut down is the
main isolate, the RuntimeController is informed which in turn notifies
the RuntimeHolder and thus the ApplicationControllerImpl. The
ApplicationControllerImpl tears down the whole Flutter application.

This fixes Fuchsia bug: MI4-328
2017-11-15 13:28:21 -08:00
mikejurka 45464c0a31 Add more tracing to content_handler. (#4328) 2017-11-08 18:39:28 -08:00
Chris Bracken bc2acf7bdd Revert "Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)" (#4340)
With the update to HEAD of the Fuchsia buildtools repo, the new clang
toolchain picked up caused link-time breakage in android x86_64
libFlutter.so builds.

Sample log:
https://build.chromium.org/p/client.flutter/builders/Linux%20Engine/builds/1974/steps/build%20android_debug_x64/logs/stdio

Sample failure:
FAILED: libflutter.so libflutter.so.TOC lib.stripped/libflutter.so
../../third_party/android_tools/ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: obj/flutter/shell/platform/android/libflutter/android_context_gl.o: unsupported reloc 42 against global symbol std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id

This reverts commit 8ad42f0dae.
2017-11-08 16:48:00 -08:00
mikejurka 0e8331aa1a Fix low-res rasterized images on Fuchsia. (#4325)
Plumb through Scenic display metrics to use during
Preroll.
2017-11-08 14:59:54 -08:00
Chris Bracken 8ad42f0dae Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)
* Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5

This also updates Flutter buildroot to a6e52dbb776c45cc8c57d7143b8eb8b2e762fdfb
which disables -Wtautological-constant-compare temporarily until
https://reviews.llvm.org/D39462 lands in clang. This is in line with
Fuchsia's compiler options.

* Apply clang-format diffs

No logical changes. This applies clang-format from the latest Fuchsia
buildtools to the engine codebase.
2017-11-08 11:18:17 -08:00
Mikkel Nygaard Ravn ce7202d73c Fix compile error in runtime holder (#4312) 2017-11-02 13:31:30 +01:00
Adam Barth 58fc251900 Move flutter_*_runner to /system/bin (#4286)
Previously, these binaries were in /system/apps, which is going away. Also,
rename flutter_runner to flutter_jit_runner to match flutter_aot_runner.
2017-10-30 19:28:19 -07:00
mikejurka 93da8c8423 Migrate from VkExportDeviceMemoryMAGMA (deprecated). (#4288) 2017-10-27 13:34:39 -07:00
Alexander Aprelev ef02c69652 Fix Fuchsia build - pass newly introduce parameter in Fuchsia flow (#4274) 2017-10-25 07:49:35 -07:00
Alexander Aprelev ec19da1c80 Initialize service isolate from kernel file, rather than from embedded sources. (#4263)
* Read core platform kernel file during Dart initialization.

Currently service isolate is initialized from the source code parsed by VM.
This CL changes it so service isolate created during Dart initialization
is created from the kernel platform.dill file if it is present in the application
bundle. Then this platform kernel file is kept in dart_init module and reused
for application sciprt isolates.

* Reformat and merge

* Use accessor method

* Avoid passing running_from_kernel param. Add TODO for cleanup. Rename param.
2017-10-24 19:37:24 -07:00
P.Y. Laligand 6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
Adam Barth 2528e533d6 Don't crash when we get unexpected pointer events. (#4230)
Just log them as errors
2017-10-17 13:25:09 -07:00
Erik Gilling 6b1878e096 Set ui, io, and gpu thread names. (#4196) 2017-10-13 23:02:14 -07:00
P.Y. Laligand 5fae5d52cf Allow the project to be mapped to a location other than //flutter. (#4203)
This is for Fuchsia where we would like it to be located at //third_party/flutter.
2017-10-13 17:00:58 -07:00
Erik Gilling 3af233d63b Revert "Set ui, io, and gpu thread names. (#4182)" (#4193)
This reverts commit fa46eca483.
2017-10-10 13:57:22 -07:00
Erik Gilling fa46eca483 Set ui, io, and gpu thread names. (#4182) 2017-10-10 13:48:41 -07:00
Adam Barth 160a98c2b2 Update paths to Fuchsia libraries (#4147)
These libraries are in Topaz now.
2017-09-27 13:45:49 -07:00
Craig Stout e8a3108365 Update vulkan gn target 2017-09-26 16:32:59 -07:00
Craig Stout 9c518cb751 Update vulkan semaphore extension
Use fuchsia specific extension to avoid casting handles as fds.
2017-09-26 11:34:34 -07:00
Adam Barth ccce4c3adb Remove spurious error message (#4135)
It's not an error to be unable to connect to the context service.
2017-09-25 13:34:35 -07:00
P.Y. Laligand d7da1255c9 Moved Maxwell to //peridot. (#4137) 2017-09-22 14:17:41 -07:00
P.Y. Laligand fc3cb8fb3b Adjust to new location of lib/tonic. (#4132) 2017-09-21 14:30:28 -07:00
Travis Martin 9d98d886ad Report onscreen text to Fuchsia context engine. (#4097)
Add a class to track onscreen text via SemanticsNodes from the
accessibility layer, and report this text to the ContextEngine.
2017-09-21 12:41:13 -07:00
Adam Barth 2f50beabcb Update paths for magma move (#4126) 2017-09-20 10:26:31 -07:00