- 13 4月, 2018 1 次提交
-
-
由 Vyacheslav Egorov 提交于
This reverts commit a3327bff.
-
- 12 4月, 2018 1 次提交
-
-
由 Chinmay Garde 提交于
This reverts commit 9199b40f.
-
- 11 4月, 2018 2 次提交
-
-
由 Chinmay Garde 提交于
This reverts commit 6baff4c8.
-
由 Chinmay Garde 提交于
* Support multiple shells in a single process. The Flutter Engine currently works by initializing a singleton shell instance. This shell has to be created on the platform thread. The shell is responsible for creating the 3 main threads used by Flutter (UI, IO, GPU) as well as initializing the Dart VM. The shell, references to task runners of the main threads as well as all snapshots used for VM initialization are stored in singleton objects. The Flutter shell only creates the threads, rasterizers, contexts, etc. to fully support a single Flutter application. Current support for multiple Flutter applications is achieved by making multiple applications share the same resources (via the platform views mechanism). This scheme has the following limitations: * The shell is a singleton and there is no way to tear it down. Once you run a Flutter application in a process, all resources managed by it will remain referenced till process termination. * The threads on which the shell performs its operations are all singletons. These threads are never torn down and multiple Flutter applications (if present) have to compete with one another on these threads. * Resources referenced by the Dart VM are leaked because the VM isn't shutdown even when there are no more Flutter views. * The shell as a target does not compile on Fuchsia. The Fuchsia content handler uses specific dependencies of the shell to rebuild all the shell dependencies on its own. This leads to differences in frame scheduling, VM setup, service protocol endpoint setup, tracing, etc.. Fuchsia is very much a second class citizen in this world. * Since threads and message loops are managed by the engine, the engine has to know about threading and platform message loop interop on each supported platform. Specific updates in this patch: * The shell is no longer a singleton and the embedder holds the unique reference to the shell. * Shell setup and teardown is deterministic. * Threads are no longer managed by the shell. Instead, the shell is given a task runner configuration by the embedder. * Since the shell does not own its threads, the embedder can control threads and the message loops operating on these threads. The shell is only given references to the task runners that execute tasks on these threads. * The shell only needs task runner references. These references can be to the same task runner. So, if the embedder thinks that a particular Flutter application would not need all the threads, it can pass references to the same task runner. This effectively makes Flutter application run in single threaded mode. There are some places in the shell that make synchronous calls, these sites have been updated to ensure that they don’t deadlock. * The test runner and the headless Dart code runner are now Flutter applications that are effectively single threaded (since they don’t have rendering concerns of big-boy Flutter application). * The embedder has to guarantee that the threads and outlive the shell. It is easy for the embedder to make that guarantee because shell termination is deterministic. * The embedder can create as many shell as it wants. Typically it creates a shell per Flutter application with its own task runner configuration. Most embedders obtain these task runners from threads dedicated to the shell. But, it is entirely possible that the embedder can obtain these task runners from a thread pool. * There can only be one Dart VM in the process. The numerous shell interact with one another to manage the VM lifecycle. Once the last shell goes away, the VM does as well and hence all resources associated with the VM are collected. * The shell as a target can now compile and run on Fuchsia. The current content handler has been removed from the Flutter engine source tree and a new implementation has been written that uses the new shell target. * Isolate management has been significantly overhauled. There are no owning references to Dart isolates within the shell. The VM owns the only strong reference to the Dart isolate. The isolate that has window bindings is now called the root isolate. Child isolates can now be created from the root isolate and their bindings and thread configurations are now inherited from the root isolate. * Terminating the shell terminates its root isolates as well as all the isolates spawned by this isolate. This is necessary be shell shutdown is deterministic and the embedder is free to collect the threads on which the isolates execute their tasks (and listen for mircrotasks flushes on). * Launching the root isolate is now significantly overhauled. The shell side (non-owning) reference to an isolate is now a little state machine and illegal state transitions should be impossible (barring construction issues). This is the only way to manage Dart isolates in the shell (the shell does not use the C API is dart_api.h anymore). * Once an isolate is launched, it must be prepared (and hence move to the ready phase) by associating a snapshot with the same. This snapshot can either be a precompiled snapshot, kernel snapshot, script snapshot or source file. Depending on the kind of data specified as a snapshot as well as the capabilities of the VM running in the process, isolate preparation can fail preparation with the right message. * Asset management has been significantly overhauled. All asset resolution goes through an abstract asset resolver interface. An asset manager implements this interface and manages one or more child asset resolvers. These asset resolvers typically resolve assets from directories, ZIP files (legacy FLX assets if provided), APK bundles, FDIO namespaces, etc… * Each launch of the shell requires a separate and fully configured asset resolver. This is necessary because launching isolates for the engine may require resolving snapshots as assets from the asset resolver. Asset resolvers can be shared by multiple launch instances in multiple shells and need to be thread safe. * References to the command line object have been removed from the shell. Instead, the shell only takes a settings object that may be configured from the command line. This makes it easy for embedders and platforms that don’t have a command line (Fuchsia) to configure the shell. Consequently, there is only one spot where the various switches are read from the command line (by the embedder and not the shell) to form the settings object. * All platform now respect the log tag (this was done only by Android till now) and each shell instance have its own log tag. This makes logs from multiple Flutter application in the same process (mainly Fuchsia) more easily decipherable. * The per shell IO task runner now has a new component that is unfortunately named the IOManager. This component manages the IO GrContext (used for asynchronous texture uploads) that cooperates with the GrContext on the GPU task runner associated with the shell. The IOManager is also responsible for flushing tasks that collect Skia objects that reference GPU resources during deterministic shell shutdown. * The embedder now has to be careful to only enable Blink on a single instance of the shell. Launching the legacy text layout and rendering engine multiple times is will trip assertions. The entirety of this runtime has been separated out into a separate object and can be removed in one go when the migration to libtxt is complete. * There is a new test target for the various C++ objects that the shell uses to interact with the Dart VM (the shell no longer use the C API in dart_api.h). This allows engine developers to test VM/Isolate initialization and teardown without having the setup a full shell instance. * There is a new test target for the testing a single shell instances without having to configure and launch an entire VM and associated root isolate. * Mac, Linux & Windows used to have different target that created the flutter_tester referenced by the tool. This has now been converted into a single target that compiles on all platforms. * WeakPointers vended by the fml::WeakPtrFactory(notice the difference between the same class in the fxl namespace) add threading checks on each use. This is enabled by getting rid of the “re-origination” feature of the WeakPtrFactory in the fxl namespace. The side effect of this is that all non-thread safe components have to be created, used and destroyed on the same thread. Numerous thread safety issues were caught by this extra assertion and have now been fixed. * Glossary of components that are only safe on a specific thread (and have the fml variants of the WeakPtrFactory): * Platform Thread: Shell * UI Thread: Engine, RuntimeDelegate, DartIsolate, Animator * GPU Thread: Rasterizer, Surface * IO Thread: IOManager This patch was reviewed in smaller chunks in the following pull requests. All comments from the pulls requests has been incorporated into this patch: * flutter/assets: https://github.com/flutter/engine/pull/4829 * flutter/common: https://github.com/flutter/engine/pull/4830 * flutter/content_handler: https://github.com/flutter/engine/pull/4831 * flutter/flow: https://github.com/flutter/engine/pull/4832 * flutter/fml: https://github.com/flutter/engine/pull/4833 * flutter/lib/snapshot: https://github.com/flutter/engine/pull/4834 * flutter/lib/ui: https://github.com/flutter/engine/pull/4835 * flutter/runtime: https://github.com/flutter/engine/pull/4836 * flutter/shell: https://github.com/flutter/engine/pull/4837 * flutter/synchronization: https://github.com/flutter/engine/pull/4838 * flutter/testing: https://github.com/flutter/engine/pull/4839
-
- 04 3月, 2018 1 次提交
-
-
由 James Tucker 提交于
The Fuchsia Package targets depend on the observatory FAR archive, which is generated by a rule with a deceptively similar name.
-
- 01 3月, 2018 1 次提交
-
-
由 Alexander Markov 提交于
* Generate Flutter-specific entry points JSON file while building engine. * Add ''--tfa' option to front-end server. * Rename _entryPoint field in front-end server to _mainSource to avoid disambiguation.
-
- 28 2月, 2018 1 次提交
-
-
由 Ryan Macnak 提交于
This allows blobfs to deduplicate it across {dart,flutter}_{jit,aot}_runner.
-
- 05 1月, 2018 1 次提交
-
-
由 P.Y. Laligand 提交于
It is moving to the Fuchsia codebase.
-
- 04 1月, 2018 1 次提交
-
-
由 Siva 提交于
Add support for --strong option in the engine, create a strong mode version of the platform file (#4504) * Add a --strong option to the front end server so we can use strong mode with preview-dart-2. * Plumb the --strong option through the dart controller into the VM. * - Build a strong version of platform.dill for use with the engine. - Fix a strong mode static error in the assert statement * Enable asserts when running debug version even in strong mode. * Use the correct platform dill file for linking when doing the aot builds. * Fix formatting issue.
-
- 23 12月, 2017 1 次提交
-
-
由 Zachary Anderson 提交于
This rule forces a build of the Dart SDK with the current host toolchain, which isn't needed.
-
- 05 12月, 2017 1 次提交
-
-
由 Adam Barth 提交于
-
- 01 12月, 2017 1 次提交
-
-
由 Ben Konyi 提交于
* Added Windows support for libtxt in order to build flutter_tester.exe. Relatively minor changes were needed to get libtxt building on Windows (missing/incompatiable headers, the odd syscall, path separators, etc.). Windows doesn't render text in the same way as other platforms, so some tests that checked for specific pixel offsets are disabled.
-
- 23 11月, 2017 1 次提交
-
-
由 P.Y. Laligand 提交于
-
- 03 11月, 2017 1 次提交
-
-
由 Adam Barth 提交于
Update the package() template to match the new syntax. This change keeps this package working the same way it does currently (i.e., being included in the system image). In the future, we'll want to remove this annotation and separate this package from the system image.
-
- 31 10月, 2017 1 次提交
-
-
由 Adam Barth 提交于
Previously, these binaries were in /system/apps, which is going away. Also, rename flutter_runner to flutter_jit_runner to match flutter_aot_runner.
-
- 26 10月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 25 10月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 19 10月, 2017 2 次提交
-
-
由 P.Y. Laligand 提交于
-
由 Adam Barth 提交于
This declaration makes it easier for Fuchsia to include Flutter in the system image.
-
- 14 10月, 2017 1 次提交
-
-
由 P.Y. Laligand 提交于
This is for Fuchsia where we would like it to be located at //third_party/flutter.
-
- 11 10月, 2017 3 次提交
-
-
由 Alexander Aprelev 提交于
* Revert "Revert "Change kernel platform generation dependency name (#4189)" (#4192)" This reverts commit a91e7b0c. * Remove bad change that broke the build * Remove comma
-
由 Alexander Aprelev 提交于
This reverts commit 83224fb6.
-
由 Alexander Aprelev 提交于
* Change kernel platform generation dependency name * Include vmservice which is needed by gen_snapshot for Flutter release build
-
- 12 9月, 2017 1 次提交
-
-
由 George Kulakowski 提交于
* Fix remaining ftl->fxl conversions The previous scripting pass at this did not account for objective c file endings * Update tonic DEPS reference to the post-fxl version
-
- 02 9月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 01 9月, 2017 1 次提交
-
-
由 Adam Barth 提交于
This repository contains FTL now in the Fuchsia build.
-
- 29 8月, 2017 1 次提交
-
-
- 26 8月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 24 8月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
* The Flutter engine will be shipped as a shared library. * The engine is renderer and window toolkit agnostic. * The simple public C API is described in embedder.h. * ABI breaking changes will be indicated by changing the FLUTTER_ENGINE_VERSION. * A simple GLFW based example of this API is available at https://gist.github.com/chinmaygarde/8abf44921f7d87f6da7bf026267c4792
-
- 22 8月, 2017 1 次提交
-
-
由 Alexander Aprelev 提交于
* Introduce frontend_server that allows for interactive and batch modes. Example of batch mode: ``` $ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart out: result 79256789-598c-4909-a9e4-0ef36d4c26ba out: 'State&TickerProviderStateMixin^#U0^' is exported from both 'package:flutter/src/widgets/animated_cross_fade.dart' and 'package:flutter/src/widgets/animated_list.dart'. ... out: Superclass has no method named 'hitTest'. out: 79256789-598c-4909-a9e4-0ef36d4c26ba $HOME/p/f/t11/flutter/flutter/examples/flutter_gallery/lib/main.dart.dill $ ``` Example of interactive mode - communication via stdin/stdout: ``` $ dart $HOME/p/f/t11/flutter/engine/src/flutter/frontend_server/bin/server.dart --sdk-root=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk --platform-kernel-dill=$HOME/p/f/t11/flutter/engine/src/out/android_debug/flutter_patched_sdk/platform.dill --incremental out: Frontend server is ready. in: compile abc.dart out: result fd99c0f9-12bb-4083-818e-2521d454fdc8 out: fd99c0f9-12bb-4083-818e-2521d454fdc8 abc.dart.dill in: accept in: recompile kuka in: 123.dart in: 456.dart in: kuka out: result d12f8d05-6c79-44f7-a775-1d3469e1be53 in: quit $ ``` * Add test. Cleanup dependencies. * One more test with mocks * Remove platform-kernel option. Refactored CompilerOptions. Clean up comments. * Update license * Use Uri.base.resolve consistently. Ensure folder path for sdk root. Fix test. * Fix main_dart for frontend_server build target * Reintroduce .packages file, add README.md, revert changes to licenses_flutter * Run analyzer on frontend-server. Update .packages deps so tests can be run too. * Add analyzer options file * Clean up dependencies * Add frontend_server files to license file back * Fix comment in analysis_options.yaml * Run frontend_server tests in travis * Update licenses * Change a+x permission on travis/test.sh * pub get before pub run test * Fix path to when * Clarify accept/reject instructions * Formatting, fixed docs, style * Update license script to skip .travis.yml, when/example. Update license file. * Update style nits * Fix license * Trim license extracted text. Fix licenses * Update licenses_third_party signature * Few more tests * Update dart license * Update dart license * Style changes. Fix return value for Future<Null>
-
- 10 8月, 2017 3 次提交
-
-
由 Alexander Aprelev 提交于
* Revert "Revert "Build standalone dart sdk as part of Flutter engine. (#3954)" (#3970)" This reverts commit 86e007d9. * Add 7-zip download as a hook * Advance buildroot dependency * Fix buildroot dependency
-
由 Alexander Aprelev 提交于
This reverts commit a5bac1ee. This doesn't work on Windows.
-
由 Alexander Aprelev 提交于
* Update dart deps and add create_sdk for host builds * Set and use is_flutter flag * Update to make it compatible with latest changes in https://codereview.chromium.org/2998503002/ * Fix deps * Roll dart dependency to pick up new arguments * Merge * Update deps * Update license
-
- 02 8月, 2017 2 次提交
- 15 7月, 2017 1 次提交
-
-
由 Gary Qian 提交于
text positioning. Change-Id: I1bc5f1076c25a757aa8550732a4ae0c4fc36b127
-
- 28 6月, 2017 1 次提交
-
-
由 Alexander Aprelev 提交于
Fix target name for flutter_patched_sdk so it doesn't conflict with patched_sdk target name, doesn't confuse ninja with depfile defined as .d (#3834)
-
- 27 6月, 2017 1 次提交
-
-
由 Alexander Aprelev 提交于
* Build Flutter patched-sdk with kernel artifacts * Switch to new dart_host_toolchain argument mechanism to let dart patch_sdk know of host_toolchain. * Update dart dependency * Updated licenses * Rename dart dependencies tag so they have just 'dart_'-prefixed dart's names. * Fix indentation and line breaks for newly added deps. * Add toolchain for windows host * Update dart revision * Licenses * Update licenses * Revert changes to licenses_third_party
-
- 21 6月, 2017 1 次提交
-
-
由 Chris Bracken 提交于
* Revert "Fix licenses_lib golden file (#3798)" This reverts commit d8ac43c3. * Revert "Remove ParagraphConstriants (#3796)" This reverts commit 8ccf767f. * Revert "Reland "Initial integration of libtxt with Flutter alongside Blink." (#3793)" This reverts commit 3c049219.
-
- 20 6月, 2017 1 次提交
-
-
由 Ankur Mittal 提交于
Change-Id: Iae0c4370ad0c7c3194209b7784797e81ee5f6825
-