4023 Commits

Author SHA1 Message Date
Alexander Aprelev
da0bf57fe3 Roll buildroot to pick up prebuilt dart sdk 2.0.0-dev.16.0 (flutter/engine#4566) 2018-01-18 14:14:26 -08:00
Siva Chandra
f8600043cc Roll Dart to 93d8c9fe2a2c22dc95ec85866af108cfab71ad06. (flutter/engine#4558)
* Roll Dart to 93d8c9fe2a2c22dc95ec85866af108cfab71ad06.

* Fix analyzer nits

* Try to pin dependency for tools/licenses to convert 2.0.1. Add verbose flag to pub get

* Pin dart to dev.16 to overcome pub issue

* Revert "Try to pin dependency for tools/licenses to convert 2.0.1. Add verbose flag to pub get"

This reverts commit d525a83f4494a511996226d328a5208d4651d46e as it is no
longer needed, was added to diagnose the problem, which turned out to be
a problem with pub in latest dart dev release.

* Fix license hash

* Reintroduce api methods and tests
2018-01-18 12:35:09 -08:00
Abhishek Amit
9cd77fd071 Add API for embedder clients to process platform events (flutter/engine#4549) 2018-01-17 16:59:36 -08:00
Ian Hickson
8faa2b6bc1 Run "pub get" for the frontend_server package before building. (flutter/engine#4562)
In https://github.com/flutter/engine/pull/4554 I removed the .packages
file in the frontend_server directory, because it was out of sync with
the pubspec.yaml. It seems like the right solution is to run `pub get`
when we get the dependencies, i.e. when we run `gclient sync`.

Being out of sync is a problem because it means that running "pub get"
in that directory changes what packages are being used, and changes
the `.packages` file, which leads to having to revert changes before
committing code, etc. Having to regularly update this file doesn't
make much sense either, since the files that were missing were files
that are obtained from the network (e.g. the `io` package as used by
the `test` package).

Previously, (see
https://github.com/flutter/engine/pull/3982#issuecomment-323213199),
we did not do this because we did not want the build to call into the
network. This still does not call into the network during the _build_
phase, only during `gclient sync` (which is when all the dependencies
are brought down).

Currently the network dependencies only matter for running tests. We
should make sure this remains the case. Ideally we wouldn't even
depend on those.
2018-01-17 15:41:46 -08:00
amirh
ac2c85c69b Update comment on Scenic shapes following feedback from schwa423@ (flutter/engine#4563) 2018-01-17 14:39:40 -08:00
Greg Spencer
a09cfd0590 Roll buildroot to c947b7aa6a57d3c427d63692e530f23b1f77d81e (flutter/engine#4561) 2018-01-17 12:11:36 -08:00
Ian Hickson
28564ac5f9 Analysis cleanup of the Dart in the Engine repo (flutter/engine#4554)
* Analysis cleanup of the Dart in the Engine repo

* Update painting.dart

* Update painting.dart
2018-01-17 09:48:56 -08:00
jensjoha
54fdc2f5ae Train frontend_server snapshot (flutter/engine#4560)
Reland d7e7abbcc2dfac04861e257a35d5e6314f27e182 with a fix for Windows build

Cuts 30% from hot-reload benchmarks with `--preview-dart-2`
2018-01-17 10:33:10 +01:00
Michael Goderbauer
66fa83780d Announce when checked status changes on Android (flutter/engine#4557)
Fixes https://github.com/flutter/flutter/issues/14092
2018-01-16 23:10:17 -08:00
amirh
9ee5ab1d8b Fallback to compose shapes as their bounding rectangles. (flutter/engine#4553)
Scenic doesn't currently support arbitrary shaped frames.
2018-01-16 18:20:18 -08:00
Jason Simmons
6590ae48d6 libtxt: use an ICU character iterator that can handle complex grapheme clusters (flutter/engine#4548) 2018-01-16 10:43:00 -08:00
Jason Simmons
e7c2f2dfb6 libtxt: skip redundant bidi processing performed by minikin (flutter/engine#4539)
The libtxt Paragraph class now runs the bidi algorithm itself, and each text
run passed to doLayout will be entirely LTR or RTL
2018-01-16 10:39:31 -08:00
Ian Hickson
08f3598be8 Make Canvas cullRect optional and make Rect.largest a static field. (flutter/engine#4551)
Fixes https://github.com/flutter/flutter/issues/7201.

The change from `new Rect.largest()` to `Rect.largest` saves a few
allocations since we'll be using these with every Canvas.
2018-01-16 10:08:08 -08:00
Alexander Aprelev
c03cd3798d Revert "Train frontend_server snapshot (#4512)" (flutter/engine#4556)
This reverts commit d7e7abbcc2dfac04861e257a35d5e6314f27e182 as it
breaks Windows engine buildbot.
2018-01-16 10:05:00 -08:00
jensjoha
d7e7abbcc2 Train frontend_server snapshot (flutter/engine#4512)
Cuts 30% from hot-reload benchmarks with `--preview-dart-2`
2018-01-15 15:59:57 +01:00
Sarah Zakarias
2ad5b735d0 Mark deprecated API in FlutterDartProject.h as unavailable (flutter/engine#4552) 2018-01-15 13:29:43 +01:00
Sarah Zakarias
a50c855b12 Run Fuchsia apps without flx (flutter/engine#4550) 2018-01-15 11:09:01 +01:00
Michael Goderbauer
2c53613b1f Properly identify CheckBox and RadioButton on Android (flutter/engine#4547) 2018-01-12 15:27:55 -08:00
Brian Osman
9cadf74d34 When blurring, clamp to image's edge pixels, not to black (flutter/engine#4546) 2018-01-12 16:27:17 -05:00
Michael Goderbauer
0258b3a3a1 Fixes crash on Android when activating Now on Tap (flutter/engine#4536) 2018-01-12 10:22:55 -08:00
Sarah Zakarias
2ac17ebc40 Revert "Run Fuchsia apps without flx" (flutter/engine#4545)
* Revert "include portable_unistd.h in directory_asset_bundle (#4542)"

This reverts commit a41471bdd6692ec78c04d3bf6b0fc4601e622876.

* Revert "Run Fuchsia apps without flx (#4538)"

This reverts commit 9bf76142c1b68565347a6c7a8d6eab56cba5256b.
2018-01-12 15:55:47 +01:00
Sarah Zakarias
57330c3bff Revert "include portable_unistd.h in directory_asset_bundle (#4542)" (flutter/engine#4544)
This reverts commit a41471bdd6692ec78c04d3bf6b0fc4601e622876.
2018-01-12 15:53:02 +01:00
Sarah Zakarias
a41471bdd6 include portable_unistd.h in directory_asset_bundle (flutter/engine#4542) 2018-01-12 15:31:56 +01:00
Sarah Zakarias
9bf76142c1 Run Fuchsia apps without flx (flutter/engine#4538) 2018-01-12 13:31:54 +01:00
Ian Hickson
73634e73bc Convert MaskFilter to pure-Dart. (flutter/engine#4534) 2018-01-11 23:25:18 -08:00
amirh
af26adb128 Revive always using SkPath for physical models (flutter/engine#4537) 2018-01-11 15:11:00 -08:00
Todd Volkert
96d3afbb3e Roll Skia to 579f094f1259931c30dfd1623e8e22d74b4a7531 (flutter/engine#4525)
* Roll Skia to 579f094f1259931c30dfd1623e8e22d74b4a7531

Fixes https://github.com/flutter/flutter/issues/13742
2018-01-11 13:15:05 -08:00
Alexander Aprelev
85d050ac98 When running on iOS deduce bundle path during engine initialization. (flutter/engine#4532) 2018-01-10 17:40:47 -08:00
Zachary Anderson
a5e0f5ae0c Roll Dart to 28757928b47b192efcec082c78258102beb03f78 (flutter/engine#4535) 2018-01-10 13:30:12 -08:00
Jason Simmons
f95c8890c1 libtxt: map pixel coordinates above the text to glyph positions on the first line of text (flutter/engine#4533)
This matches Blink's behavior
2018-01-10 10:32:24 -08:00
Ian Hickson
39ba4de88b Offset.direction (flutter/engine#4530)
Since we've got a vector class, and it has a getter for the magnitude,
why not also a getter for the angle.
2018-01-09 22:17:57 -08:00
Mikkel Nygaard Ravn
495f8f71f4 Deprecate support for big integers in standard message codec (flutter/engine#4528) 2018-01-09 23:58:45 +01:00
Ben Konyi
e5da0bc1b5 Dart sdk roll for 2018/01/09 (bd6cbd1ec7e79730ea1fd8ba01139f4e18a02290) (flutter/engine#4531)
* Rolled dart-sdk to bd6cbd1ec7e79730ea1fd8ba01139f4e18a02290

* Updated third_party licenses.
2018-01-09 14:28:13 -08:00
Michael Goderbauer
2799e93b71 Rename SemanticsFlags to SemanticsFlag (flutter/engine#4526)
To align with `SemanticsAction`.
2018-01-09 09:25:52 -08:00
amirh
fcfe94380f Revert "Delete the SkPath/SkRRect code duplication in for physical model layers. (#4519)" (flutter/engine#4527)
This reverts commit 0847830c7e3e2abff050596f911f77878b7a3c96.
2018-01-08 19:25:56 -08:00
amirh
0847830c7e Delete the SkPath/SkRRect code duplication in for physical model layers. (flutter/engine#4519) 2018-01-08 16:13:15 -08:00
Mehmet Fidanboylu
3d611a011b Fix build break caused by https://github.com/flutter/engine/pull/4491 (flutter/engine#4524) 2018-01-07 07:51:46 -08:00
Mehmet Fidanboylu
354eeb0cf3 Add unwrap to JSONUtil (flutter/engine#4491)
We have a use for this for the internal messaging plugin. Instead of rolling our own, it made sense to add it here especially since it has the mirror functionality (wrap).
2018-01-06 14:32:00 -08:00
Jason Simmons
9ba9bfc0b2 API version check for AccessibilityNodeInfo.setEditable call (flutter/engine#4522)
Fixes https://github.com/flutter/flutter/issues/13896
2018-01-05 14:45:35 -08:00
Ryan Macnak
0327fa6f71 Roll Dart to 5b56dfb77a76e9d8021086c0684b1e8bd9dbca9a. (flutter/engine#4521) 2018-01-05 14:15:47 -08:00
Jason Simmons
fadef9db2f Add a Rect.largest constructor equivalent to SkRect::MakeLargest (flutter/engine#4520) 2018-01-05 13:37:23 -08:00
Jason Simmons
18d27b3e67 Fetch libjpeg-turbo from the Fuchsia repository (flutter/engine#4518) 2018-01-05 12:08:56 -08:00
Michael Goderbauer
ff69f13eb3 Split SemanticsFlags.isDisabled into two (flutter/engine#4517) 2018-01-04 15:15:54 -08:00
Siva
0362c79542 Roll Dart to version 8d7219a5b6a7c2505ff57f23e7cf80da4c724512 (flutter/engine#4515)
* Roll Dart to version 8d7219a5b6a7c2505ff57f23e7cf80da4c724512

* Update third_party license file.
2018-01-04 14:36:41 -08:00
Alexander Aprelev
a6d6f56e67 Fix windows build by using lambda capture workaround (flutter/engine#4514)
* Fix windows build by using lambda capture workaround

* clang format, add todo

* clang-format again
2018-01-04 10:41:54 -08:00
Alexander Aprelev
a4ae031706 This adds RPC call to set asset path. (flutter/engine#4323)
* This adds rpc call to simply set asset path.

This is needed when doing hot reload to pick up updated assets.

* Move asset_directory fetch for after view_id. Clean up return. Fix formatting.

* Add SetAssetBundlePath methods implementations for mac and ios

* Fix mac mm

* Fix formatting

* Merge and use nullptr
2018-01-04 09:48:01 -08:00
P.Y. Laligand
baf69ca25c [fuchsia] Removed the flutter_app template. (flutter/engine#4511)
It is moving to the Fuchsia codebase.
2018-01-04 09:20:41 -08:00
Sigurd Meldgaard
45bc2a7837 Apply texture transform on Android (flutter/engine#4513)
* Apply transform to textures on android
2018-01-04 16:04:30 +01:00
Siva
04d910f0b1 Add support for --strong option in the engine, create a strong mode version of the platform file (flutter/engine#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.
2018-01-03 16:52:24 -08:00
Ian Hickson
78d3101148 Further improve painting.dart documentation. (flutter/engine#4505) 2018-01-03 16:34:09 -08:00