Commit Graph

3640 Commits

Author SHA1 Message Date
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
Jonah Williams
984b70e6ad swap brightness definition on iOS to match android (flutter/engine#5239) 2018-05-11 14:01:29 -07:00
Jason Simmons
4ff9861d43 Re-land "libtxt: exclude trailing whitespace from right-justified lines" (flutter/engine#5234)
If a line is right justified, then remove any trailing whitespace from the
text range given to Minikin.  Right justification shifts the line's glyphs
by the layout advance computed by Minikin, and this advance should exclude
whitespace so that the last visible character will be flush with the right
margin.

Also exclude trailing whitespace from center justified lines.

Fixes https://github.com/flutter/flutter/issues/17502
Fixes https://github.com/flutter/flutter/issues/16333
2018-05-11 12:17:31 -07:00
skia-flutter-autoroll
55ebf10053 Roll src/third_party/skia/ 1d686a962..811b944a8 (25 commits; 5 trivial rolls) (flutter/engine#5237)
Auto-roller completed checks. Merging.
2018-05-11 14:55:59 -04:00
Jason Simmons
6431f174d4 Detach from JNI before exiting the GPU thread. (flutter/engine#5231)
The GPU thread calls into Java via JNI in order to update external textures.

Fixes https://github.com/flutter/flutter/issues/17329
2018-05-11 11:42:19 -07:00
Todd Volkert
a911ad0a97 Revert ad4771c35f (flutter/engine#5233)
In introduced a regression in text layout: https://github.com/flutter/flutter/issues/17502
2018-05-10 23:50:19 -07:00
Ben Konyi
4ef87176ae Fixed Windows build after Blink removal (flutter/engine#5230) 2018-05-10 17:21:12 -07:00
Jason Simmons
67381c0c35 Remove Blink code (flutter/engine#5218)
Fixes https://github.com/flutter/flutter/issues/12212
2018-05-10 15:57:29 -07:00
Todd Volkert
99d48aab30 Bypass the raster cache when screenshotting (flutter/engine#5227)
Fixes https://github.com/flutter/flutter/issues/17448
2018-05-10 12:32:17 -07:00
Ryan Macnak
4f023940cd [fuchsia] Add dependencies needed to build the test shell. (flutter/engine#5216) 2018-05-09 13:43:27 -07:00
Jason Simmons
540616b4da libtxt: in GetRectsForRange, add placeholders only for newline characters (flutter/engine#5157)
If the range passed to GetRectsForRange includes a newline character, then
the framework expects to see a rectangle representing the newline so it knows
where to position the cursor at the end of the line.

If the range covers other non-printing characters but not the newline, then
GetRectsForRange should not produce a rectangle for the line.
2018-05-09 11:42:44 -07:00
Jason Simmons
a45e210692 Provide an SkPaint that describes the background of a text style (flutter/engine#5153)
Fixes https://github.com/flutter/flutter/issues/11961
2018-05-09 11:36:52 -07:00
Chinmay Garde
47d04deb99 Read/apply settings that apply process wide before creating any shell components. (flutter/engine#5203) 2018-05-08 11:56:31 -07:00
Chinmay Garde
1add7581f0 Allow explicit specification of the isolate snapshot. (flutter/engine#5193)
The mobile shells all use the same isolate snapshot. This is also the snapshot used by the service isolate. This works towards a world where the isolate snapshot is no longer a member variable of the DartVM instance. Instead, all snapshots must be specified in the run configuration. For now, the new `Shell::Create` overload will only be used by Fuchsia till I refactor `dart_vm.cc`.

There are no API updates to the mobile shells.
2018-05-07 17:28:31 -07:00
Jason Simmons
ad4771c35f libtxt: exclude trailing whitespace from right-justified lines (flutter/engine#5190)
If a line is right justified, then remove any trailing whitespace from the
text range given to Minikin.  Right justification shifts the line's glyphs
by the layout advance computed by Minikin, and this advance should exclude
whitespace so that the last visible character will be flush with the right
margin.

See https://github.com/flutter/flutter/issues/16333
2018-05-07 17:16:03 -07:00
Jason Simmons
ddb2f2ab8f libtxt: support fake italic text (flutter/engine#5191)
The text skew value is based on Blink's implementation.

Fixes https://github.com/flutter/flutter/issues/17351
2018-05-07 17:12:03 -07:00