Commit Graph

3655 Commits

Author SHA1 Message Date
Martin Kustermann
83f32f0961 Restore functionality to run from .so file on Android (flutter/engine#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
82c5c8feda, which this CL restores.

Issue https://github.com/flutter/flutter/issues/17236
2018-05-23 10:11:44 +02:00
Yegor
1a56aa9357 remove the no longer used children parameter (flutter/engine#5333) 2018-05-22 12:44:42 -07:00
Todd Volkert
84d3622321 Support single-argument signature in Canvas.scale() (flutter/engine#5334) 2018-05-22 12:10:38 -07:00
Yegor
7df1242691 split children into two ordered lists: traversal and hit test (flutter/engine#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
ritesh-malav
9563521183 Update README.md (flutter/engine#5238) 2018-05-21 17:16:41 -07:00
Brian Osman
6fd73be906 Set fPreferExternalImagesOverES3 option in Skia (flutter/engine#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
52e89069cb Re-add ACTION_LONG_CLICK for Android a11y (flutter/engine#5330) 2018-05-21 11:29:50 -07:00
skia-flutter-autoroll
7acc19d20a Roll src/third_party/skia/ 037be4e03..4dc5a4540 (5 commits) (flutter/engine#5329)
Auto-roller completed checks. Merging.
2018-05-21 13:59:37 -04:00
Siva
f1cf718e49 Roll Dart to version 97b6c2e09d6532eeb622d85f23109f3f3b6d2b61 (flutter/engine#5317)
* Roll Dart to version 97b6c2e09d6532eeb622d85f23109f3f3b6d2b61

This dart roll includes the following changes:

97b6c2e09d Don't give Source and ResourceProvider to CompletionRequestImpl.
04816270fa Add Forest support for creating parenthesized conditions
7a90ed9b88 Tests for completion with nested blocks, functions, and methods.
353ddbaea1 Add Forest support for while statements
8d0bda43f3 Fix codesize regression from Cleanup after removing MirrorsData
802c25aff9 Add tests to test InstanceCreationExpressionImpl.canBeConst
def6f6c86c Don't create linked groups when nothing was written.
0c2b349827 Blocks and variable declarations in Forest
5ecf69d90a [fasta] Use Object as defaultType if Object is the explicit bound
4bac17655d [kernel/vm] VM support for instantiate-to-bounds.
a4494a7fb2 Make `mixin` and `interface` built-in identifiers.
dc76aa34c7 Stop using a port to keep the isolate alive in async_helper.
a16563931c [VM] Mark 3 more tests as pass, crash
a5d4195b0b CHANGELOG entry for noSuchMethod change
d49af06ce0 Fix for searching references to named parameters in hierarchy.
c26435f18f [dart:io] Add length check assert to x509 code
6fee620564 Convert more IdentiferContext consts
a6ad152315 Fix constant-related deprecation warnings in analyzer packages
3e8ca8e0a6 Improve class declaration header recovery
ffd5a1914d Update top level function name identifier context
24f5ca0187 [fuchsia] Use Fuchsia prebuilts
1a2f317735 Update parse mixin to use computeType and add recovery tests
1d6619eba6 [infra] Upgrade checked in SDKs to 2.0.0-dev.55.0
76a30dd594 Initial implementation of 'execution.getSuggestions'.
510669a0b4 [VM] Address uncovered issues, mark test as passing
abb1ee98f7 Move library related operations to DartFileEditBuilderImpl. Initialize enclosing elements into fields lazily.
7d5ebb937b A few more Analyzer/CFE type argument tests
11006c3bac Reland "[VM] Use IR for code in [CatchEntryInstr]s to populate captured exception/stacktrace variables"
e7495e427c [dart:io] Adds X509Certificate.der and X509Certificate.pem
62ffedefdd Rewrite writing types to using existing writeXYZ() methods.
e6fc78c87b Revert "Reland "[VM] Use IR for code in [CatchEntryInstr]s to populate captured exception/stacktrace variables""
d59745029a [fasta] Update expectation files after CL 50945
6fc4854e98 [fasta] Run instantiate-to-bound on functions
23b4a505ec Reland "[VM] Use IR for code in [CatchEntryInstr]s to populate captured exception/stacktrace variables"
23c8c4d101 [vm/kernel] Pass type variables through ActivationFrame for expression compilation.
b827b70e89 Extract IdentifierContext.typeVariableContext into new subclass
b7659e6d03 Improve typedef declaration recovery
7c1ae73a21 Fix a Dart 2 runtime bug in BodyBuilder
38cb4cbc0a [VM] Update status file to make hot-reload builders green
1be81b4a96 [VM] Skip vm/dart/appjit_test on opt-counter builder
4d22c0de58 [infra] Improve cycle time of dart2js builders
812189d3e7 Convert LargeIntAccessor to LargeIntAccessGenerator
5e98c49606 Convert ReadOnlyAccessor to ReadOnlyAccessGenerator
17e284fbc2 Convert DeferredAccessor to DeferredAccessGenerator
d5719cae62 Small cleanup in compiler.dart
54173bf293 Move TypeMask cache to CommonMasks
78f348b3d5 Don't export types/masks.dart from types/types.dart
d2d763411d Use AbstractValue in inference results.
1c0b52ccc0 Reapply "Cleanup after removing MirrorsData" with fix
e491bc5d86 Allow to specify what dill file to initialize from
8101ee0479 [kernel] Remove unused GlobalIndexer from ast_to_binary.dart
dc8e621451 [js_runtime] Avoid more casts
0ad2b1243d Use carbon copy buffer field instead of passing it around.
6d55ba3037 [dart2js] Remove checks from inlined static call sites
6363cf6d3d Add new handleParenthesizedCondition event
393a47441f fix #33138, local class name should not conflict with inline-JS in SDK
6c3a861f8f [dart2js] Check arguments declared with generic method type parameter
499c25d886 [fuchsia] Update FIDL include paths.
d91af4625c Fix fix import URIs from file:// URIs on Windows.
53a51d17db Support for optional ImportPrefixGenerator to generate prefixes for new imports.
338a423416 Add Forest support for creating try statements
757ef3979c Revert "Revert "Revert "Don't do implicit new/const code generation with --preview-dart-2 enabled."""

* Update license.

* barback has been removed.

* Update license file.

* Update license file.
2018-05-21 10:15:57 -07:00
cary-clark
0e82a0b583 remove Skia toString() use (flutter/engine#5326)
Skia toString() is not maintained; the debugger that used it has been replaced. 
Replace usage with equivalent implementation.
2018-05-21 09:04:51 -04:00
skia-flutter-autoroll
b390e6c136 Roll src/third_party/skia/ ba5b5f517..da816f070 (1 commit) (flutter/engine#5318)
Auto-roller completed checks. Merging.
2018-05-18 21:43:55 -04:00
Chinmay Garde
1718f9b935 Break the FXL from flutter/assets. (flutter/engine#5316) 2018-05-18 17:04:36 -07:00
Chinmay Garde
1dddd111f6 Remove the only user of fxl::StringView in FML. (flutter/engine#5314) 2018-05-18 16:43:13 -07:00
Chinmay Garde
407cfd2aa9 Import synchronization utilities into FML. (flutter/engine#5312) 2018-05-18 16:25:29 -07:00
Chinmay Garde
6583de47ac Fix missing include on Windows. (flutter/engine#5313) 2018-05-18 16:22:48 -07:00
Chinmay Garde
93b02cf2f9 Import FXL timing utilities into FML. (flutter/engine#5311) 2018-05-18 16:02:01 -07:00
Chinmay Garde
16bc51e056 Import logging utilities from FXL. (flutter/engine#5310) 2018-05-18 15:43:49 -07:00
Chinmay Garde
ae5159740a Temporarily use expat on Android because the Android font manager depends on the same. (flutter/engine#5308) 2018-05-18 12:55:20 -07:00
Chinmay Garde
1c1b28b8b5 Remove unused defines and update buildroot. (flutter/engine#5307) 2018-05-18 12:33:19 -07:00
Chinmay Garde
815ccafbad Disable SVG canvas and friends. (flutter/engine#5306) 2018-05-18 12:09:14 -07:00
Chinmay Garde
00d7bf3b5b Remove support for reading FLX archives from engine. (flutter/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
liyuqian
d2b0840de3 Add debug asserts to using SkVertices::Builder (flutter/engine#5292)
Fixes flutter/flutter#9226
2018-05-18 10:32:56 -07:00
Greg Spencer
6351200ae7 Moving assets-for-api-docs links to point to new asset dir. (flutter/engine#5296)
No logic changes, only links in doc comments.
2018-05-18 08:56:34 -07:00
Dan Field
33f650f452 TwoPointConicGradients again (flutter/engine#5299)
* update docs for getBounds

* Add computeMetrics suggestion

* better explanation

* Support for TwoPointConical gradients
2018-05-18 07:43:52 -04:00
Todd Volkert
300f7fa815 Clear the raster cache result when bypassing raster cache. (flutter/engine#5300)
https://github.com/flutter/flutter/issues/17448
2018-05-17 23:50:07 -07:00
skia-flutter-autoroll
be72306ab0 Roll src/third_party/skia/ 000e00df1..51371a433 (11 commits; 1 trivial rolls) (flutter/engine#5295)
Auto-roller completed checks. Merging.
2018-05-17 17:27:56 -04:00
Alexander Aprelev
bc4d335137 Revert "Delegate AppDelegate life-cycle callbacks to plugins via separate object (#5173)" (flutter/engine#5294)
This reverts commit f8d59eeabc as it broke
mac engine build bot.
2018-05-17 14:11:12 -07:00
Alexander Aprelev
6ef8fbd2a3 Revert "Support for TwoPointConical gradients (#5275)" (flutter/engine#5293)
This reverts commit 6782261b29 as it
breaks flutter gradient_test.
2018-05-17 14:10:19 -07:00
Alexander Aprelev
965ce6f3e9 Disable kernel-based expression evaluation. (flutter/engine#5290)
This should be reverted once dartbug.com/33087 is fixed.
2018-05-17 14:09:45 -07:00
Chinmay Garde
bddd31be8f Remove dart_vm_entry_points_fuchsia.txt as it has been moved to //topaz (flutter/engine#5291) 2018-05-17 13:41:36 -07:00
Chinmay Garde
6efb374d9e Remove the content handler for its move to topaz. (flutter/engine#5289) 2018-05-17 12:55:29 -07:00
Sigurd Meldgaard
f8d59eeabc Delegate AppDelegate life-cycle callbacks to plugins via separate object (flutter/engine#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
Dan Field
9e5c5ac0b9 update docs for Path.getBounds (flutter/engine#5261)
* update docs for getBounds

* Add computeMetrics suggestion

* better explanation
2018-05-17 07:02:28 -04:00
Dan Field
6782261b29 Support for TwoPointConical gradients (flutter/engine#5275) 2018-05-16 19:27:44 -04:00
Michael Goderbauer
cfbbc59034 Only send a11y events if a11y is turned on (flutter/engine#5281) 2018-05-16 13:12:56 -07:00
Ryan Macnak
aab4242b2c [fuchsia] Teach engine how to set up an isolate from a list of kernel files. (flutter/engine#5210) 2018-05-16 10:09:53 -07:00
Alexander Aprelev
2d74bd4c27 Enable flutter service protocol rpcs to run on UI isolate. (flutter/engine#5263)
With this change if flutter tools provides isolateId parameter, then VM will run the handler on that isolate. If no isolateId is provided, VM will continue running handlers as if they were registered wit Dart_RegisterRootServiceRequestCallback.

This goes towards fixing https://github.com/flutter/flutter/issues/17434
2018-05-16 07:29:20 -07:00
skia-flutter-autoroll
5112de2e67 Roll src/third_party/skia/ c8799aa92..5b8b472b3 (7 commits) (flutter/engine#5273)
Auto-roller completed checks. Merging.
2018-05-15 21:30:56 -04:00
Jason Simmons
8e68e89f66 Drain any pending work on the IO thread before shutting down the platform view (flutter/engine#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
9ee60830b1 Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (flutter/engine#5269)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 16:13:21 -07:00
Chinmay Garde
83bfe0136e Mark the linux group testonly (flutter/engine#5268) 2018-05-15 13:49:42 -07:00
Chinmay Garde
3b1ec0202b Build the flutter tester on Linux in the default group. (flutter/engine#5267) 2018-05-15 13:39:14 -07:00
Ryan Macnak
f49044eebd Revert "Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (#5259)" (flutter/engine#5266)
This reverts commit e2a590e926.
2018-05-15 13:26:51 -07:00
Ryan Macnak
e2a590e926 Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (flutter/engine#5259)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 12:57:01 -07:00
Chinmay Garde
8fc8c8b670 Create an empty group that the Fuchsia bots use to determine the root_out_dir. (flutter/engine#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
4f15413841 Support a model where the application creates a FlutterNativeView that is never destroyed (flutter/engine#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
Matan Lurey
7528e47e84 Fix documentation mistake in painting.dart (flutter/engine#5236)
s/`[red]`/_correct color_.
2018-05-15 08:00:30 -07:00
Chinmay Garde
baf5293906 Create a session presentation backed Vsync waiter on Fuchsia. (flutter/engine#5255) 2018-05-14 16:51:19 -07:00
Chinmay Garde
f89c3f3ed1 Terminate the engine immediately if there are isolate launch errors. (flutter/engine#5244) 2018-05-11 18:32:35 -07:00
Jason Simmons
b0d9893494 Allow Canvas.saveLayer without bounds (flutter/engine#5240)
Fixes https://github.com/flutter/flutter/issues/17497
2018-05-11 15:18:35 -07:00