Commit Graph

233 Commits

Author SHA1 Message Date
Chinmay Garde 4fa6be7cee Fix channel encoding errors on the IME client. (#5209) 2018-05-08 16:20:42 -07:00
Chinmay Garde f64f64eee4 Tear down the shell before terminating message loops on host threads. (#5207)
Shell teardown is synchronous. The shell was attempting to destroy components on a quitting message loop. The message loop implementation was executing such tasks on the calling thread which the shell does not consider thread safe.
2018-05-08 13:10:23 -07:00
Chinmay Garde a0be8779ff Make thread names more descriptive. (#5196)
The thread on which the runner services `CreateApplication` calls is now called `io.flutter.runner.<aot|jit>`. Each application will launch four threads named `<application_name>.<platform|ui|io|gpu>`.

`fx shell ps -T` is an easy way to tell which runners are hosting which applications.
2018-05-07 18:45:43 -07:00
Chinmay Garde 9110e89582 Expose View:OfferServiceProvider to UI thread components in a thread safe manner. (#5195) 2018-05-07 18:22:53 -07:00
Chinmay Garde eb5bbdac17 Specify a custom isolate snapshot per AOT shell launch. (#5194) 2018-05-07 17:46:36 -07:00
Chinmay Garde 13abe8772e Use a view container handle instead of a reference to the view interface ptr when configuring an isolate. (#5179) 2018-05-04 14:27:57 -07:00
Chinmay Garde 9b7cc44df1 Dart bindings own the FDIO namespace. Release the engine side reference to the handle after bindings are setup. (#5156) 2018-05-02 16:37:48 -07:00
Chinmay Garde fd1c484f8e Log errors on common interface channels and use interface handles for IsolateConfigurator. (#5124) 2018-04-27 18:40:56 -07:00
Chinmay Garde 8a5c92b22f Label threads before engine launch so early lifecycle crashes and logs have thread labels on them. (#5121) 2018-04-27 16:26:16 -07:00
Chinmay Garde 5b5d920746 Use interface handles for transferring ownership of channels across threads. (#5107)
* Scenic is used on the GPU thread and is owned by the session connection held by the rasterizer.
* The view container is used to initialize the mozart bindings on the UI thread.
* Accessibility bridge is used on the platform thread.
2018-04-26 18:40:53 -07:00
Chinmay Garde a9a53d404b Use the non-thread-hostile FontProviderSyncPtr for font resolution. (#5105) 2018-04-26 15:31:43 -07:00
Chinmay Garde 2ee36e2700 Always enable verbose logging on fuchsia. (#5104) 2018-04-26 14:40:04 -07:00
Chinmay Garde 131349f839 Update flutter runner process name to reflect last running shell. (#5102) 2018-04-26 13:41:03 -07:00
Ryan Macnak 78f8a0f45a [fuchsia] Changes for running Dart 2 on flutter_runner. (#5080)
- Remove assumption that we're in Dart 2 mode only if there's a platform kernel.
 - Load core snapshots from the package instead of linking them in.
2018-04-25 13:31:13 -07:00
Chinmay Garde 6a93ef1c70 Call SkGraphics::Init earlier on Fuchsia. (#5079) 2018-04-24 16:02:54 -07:00
Chinmay Garde 79b9ffb14b Fixup Fuchsia content handler post shell refactor. (#5072) 2018-04-23 20:16:01 -07:00
Chinmay Garde 58e84c8bf0 Re-land "Support multiple shells in a single process. (#4932)" (#4998)
* Re-land "Support multiple shells in a single process. (#4932)"

This reverts commit 723c7d0143.
2018-04-13 13:48:15 -07:00
Adam Barth 0c74fc93d9 [fuchsia] Fix use-after-free (#4987)
We were trying to re-establish the wait after calling Reset(), but
Reset() can result in the surface being destroyed. Now we re-establish
the wait inside the Reset() machinery.
2018-04-12 14:25:40 -07:00
Adam Barth b6d2dde92d [fuchsia] Fix build (#4986)
Add missing include.
2018-04-12 13:15:39 -07:00
Jeff Brown 1dd1264944 [async] Adapt to libasync API changes. (#4980) 2018-04-12 12:56:29 -07:00
egdaniel 69d9590e43 Update skia vulkan usages to use getBackendRenderTarget. (#4982)
* Update vulkan_swampchain.cc to use getBackendRenderTarget.

The use of getRenderTargetHandle on SkSurface is being removed so switch over to the new API of getBackendRenderTarget.

* Update vulkan_swapchain.cc

* Update vulkan_surface_producer.cc
2018-04-12 14:06:28 -04:00
Vyacheslav Egorov 723c7d0143 Revert "Re-land "Support multiple shells in a single process. (#4932)" (#4977)" (#4981)
This reverts commit a3327bff86.
2018-04-12 18:28:55 +02:00
Chinmay Garde a3327bff86 Re-land "Support multiple shells in a single process. (#4932)" (#4977)
This reverts commit 9199b40f2a.
2018-04-11 15:41:23 -07:00
Brian Osman 44bff286de Remove named field initialization of GrVkImageInfo (#4972)
This syntax fails in conjunction with the new 6-argument constructor
that's been added. Fields were already initialized in the correct
order, so simply omit the field names. Once the constructor lands,
this will switch to calling that.
2018-04-11 14:52:28 -04:00
Chinmay Garde 9199b40f2a Revert "Support multiple shells in a single process. (#4932)" (#4964)
This reverts commit 6baff4c821.
2018-04-10 15:28:43 -07:00