- 28 3月, 2019 1 次提交
-
-
由 Chinmay Garde 提交于
This reverts commit 7e77d5c4 after fixing Windows issues.
-
- 27 3月, 2019 3 次提交
-
-
由 Chinmay Garde 提交于
Revert "Allow specification of std::functions as native entrypoints from Dart code. (#8309)" (#8312) This reverts commit 400a86a6.
-
由 Chinmay Garde 提交于
This allows for the specification of std::functions (using EmbedderContext::NativeEntry) with their captures as native entrypoints. Earlier, only C functions we allowed which meant that there were no captures and assertions had to use globals which could introduce bugs when used with gtest_repeat.
-
由 Chinmay Garde 提交于
-
- 26 3月, 2019 2 次提交
-
-
由 Chinmay Garde 提交于
Also allows tests to specify their own embedder contexts.
-
由 Chinmay Garde 提交于
All embedder unit-tests have to setup the Flutter project arguments from scratch before launching the engine. The boilerplate and having to deal with the low level C API during each engine launch is a hinderance to writing tests. This patch introduces an EmbedderTest fixture that sets up all the embedder side snapshots before allowing the unit test to create a FlutterConfigBuilder` that the test can use to incrementally build and edit the Flutter project configuration. From the given state state of a configuration, multiple engines can be launched with their lifecylces managed by appropriate RAII wrappers. This allows the a fully configured Flutter engine to be launched using 4 lines of code in a fixture. ``` EmbedderConfigBuilder builder; builder.SetSoftwareRendererConfig(); builder.SetAssetsPathFromFixture(this); builder.SetSnapshotsFromFixture(this); auto engine = builder.LaunchEngine(); ```
-
- 01 3月, 2019 1 次提交
-
-
由 Chris Bracken 提交于
Previously the transformation matrix returned on semantics nodes was fetched by matrix col,row (incorrectly). This uses the SkMatrix constants instead and adds a test.
-
- 28 2月, 2019 1 次提交
-
-
由 Chris Bracken 提交于
Some embedders prefer to minimise the number of semantics node/custom action updates sent back to the host platform -- for example due to expensive serialisation mechanisms, etc. This patch provides a 'batch end' signal that provides embedders with an indication of when a self-consistent set of semantics node or custom action updates have been sent. We overload the node/action ID with information that conveys a batch end by using an ID (-1) that is never allotted to semantics nodes by the framework.
-
- 21 2月, 2019 1 次提交
-
-
由 Chris Bracken 提交于
Flutter's accessibility APIs consist of three main calls from the embedder to the Dart application: 1. FlutterEngineUpdateSemanticsEnabled: enables/disables semantics support. 2. FlutterEngineUpdateAccessibilityFeatures: sets embedder-specific accessibility features. 3. FlutterEngineDispatchSemanticsAction: dispatches an action (tap, long-press, scroll, etc.) to a semantics node. and two main callbacks triggered by Dart code: 1. FlutterUpdateSemanticsNodeCallback: notifies the embedder of updates to the properties of a given semantics node. 2. FlutterUpdateSemanticsCustomActionCallback: notifies the embedder of updates to custom semantics actions registered in Dart code. In the Flutter framework, when accessibility is first enabled, the embedder will receive a stream of update callbacks notifying the embedder of the full semantics tree. On further changes in the Dart application, only updates will be sent.
-
- 16 2月, 2019 1 次提交
-
-
由 Jason Simmons 提交于
Also extend the embedder unit tests to cover AOT execution
-
- 07 2月, 2019 1 次提交
-
-
由 Chris Bracken 提交于
Allows embedders to specify a callback to be invoked in isolate scope once root isolate has been created and marked runnable. As an example of where this is useful, embedder unit test fixtures may want to include Dart functions backed by a native implementation. On isolate creation, this patch allows the unit test author to call Dart_SetNativeResolver in root isolate scope.
-
- 30 1月, 2019 1 次提交
-
-
由 stuartmorgan 提交于
FlutterResult is also the name of a class in the Objective-C API surface, which is problematic when building a framework that contains both (such as a macOS implementation of the Flutter framework).
-
- 17 1月, 2019 1 次提交
-
-
由 Chris Bracken 提交于
As of Dart 2, running from Dart source is no longer supported. Dart code should now be compiled to kernel form and will be loaded by from kernel.blob in the assets directory. We retain the struct members for ABI stability. package_path is also not required since kernel blobs are self-contained.
-
- 17 12月, 2018 1 次提交
-
-
由 Chris Bracken 提交于
As of the migration to Dart 2, it has been necessary to compile Dart to kernel prior to execution. The embedder currently requires that the resulting kernel file be named `kernel_blob.bin` and be located at the root of the assets directory passed to the embedder API. This patch updates the test_fixtures build rule to perform a kernel compile using frontend_server, outputting `kernel_blob.bin` to `fixtures/test_target_name` directory, and updates the embedder unittests to specify the kernel file rather than the Dart source file. Since the kernel compiler requires a `main()` function to be defined, it also updates `simple_main.dart` from runtime_unittests to define `main()` rather than `simple_main()`. This also updates all existing sub-targets to be testonly. This relands commit ac9e521a, which was reverted in commit 49411258. Rather than running as prebuilt_dart_action, we use dart_action to ensure the frontend snapshot it compatible with the VM on which it's executed.
-
- 16 12月, 2018 2 次提交
-
-
由 Chris Bracken 提交于
This reverts commit ac9e521a. This broke dynamic release mode builds of //flutter/runtime:runtime_fixtures_kernel (likely all product-mode builds).
-
由 Chris Bracken 提交于
Compile embedder unit test Dart to kernel As of the migration to Dart 2, it has been necessary to compile Dart to kernel prior to execution. The embedder currently requires that the resulting kernel file be named `kernel_blob.bin` and be located at the root of the assets directory passed to the embedder API. This patch updates the test_fixtures build rule to perform a kernel compile using frontend_server, outputting `kernel_blob.bin` to `fixtures/test_target_name` directory, and updates the embedder unittests to specify the kernel file rather than the Dart source file. Since the kernel compiler requires a `main()` function to be defined, it also updates `simple_main.dart` from runtime_unittests to define `main()` rather than `simple_main()`. This also updates all existing sub-targets to be testonly.
-
- 27 11月, 2018 1 次提交
-
-
由 Chris Bracken 提交于
Reduces spurious error log messages in GLContextMakeCurrent() attempting set up the GR context: [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(42)] Could not make the context current to setup the gr context.
-
- 08 11月, 2018 1 次提交
-
-
由 Michael Goderbauer 提交于
-
- 26 5月, 2018 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 31 10月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-
- 26 10月, 2017 1 次提交
-
-
由 Chinmay Garde 提交于
-