9339 Commits

Author SHA1 Message Date
Craig Stout
fb9782a529 Introduce VulkanProvider
For more consistent access to base vulkan functionality owned
elsewhere.
2018-01-27 13:17:28 -08:00
Chris Bracken
521c73ded8
Revert "Use @available checks for iOS 11 features (#4596)" (#4597)
This reverts commit 89b6d435205d9bcdf8dde965dd1b0432482407c5.

Apparently the clang toolchain is still hitting issues. Will give this
another go after the next clang toolchain update.
2018-01-26 16:08:18 -08:00
Chris Bracken
89b6d43520
Use @available checks for iOS 11 features (#4596)
Guard code that deals with iOS safe area insets behind an @available
check.

This cleans up some old TODOs from before out clang toolchain supported
@available.
2018-01-26 15:51:00 -08:00
Chris Bracken
f937d93138
Extract common iOS asset path lookup code (#4594)
Consolidates the asset path lookup logic from FlutterDartProject and FlutterMain().
2018-01-26 14:27:46 -08:00
Alexander Aprelev
6921873c71
Lookup FTLAssetsPath when deducing assets path on ios (#4593)
* Lookup FTLAssetsPath when deducing assets path on ios

* WS

* Proper fix

* Another whitespace fix
2018-01-26 13:45:04 -08:00
Jason Simmons
c9b1e0394b
libtxt: be more resilient if the minikin glyphs and the grapheme breaker get out of sync (#4590) 2018-01-26 13:35:53 -08:00
Michael Goderbauer
a1e4f2f991
Add semantic actions for copy, cut, and paste (#4592) 2018-01-26 12:11:38 -08:00
Jason Simmons
3f41726860
Implement more SkFontMgr APIs in AssetFontManager (#4591) 2018-01-26 11:55:16 -08:00
Abhishek Amit
2dd385fd7e
Allow embedder clients to provide a resource context (#4588)
* Allow embedder clients to provide a resource context. Closes flutter/flutter#14263.
2018-01-25 17:30:23 -08:00
Michael Goderbauer
7c34dfafc9
Adds a11y action for selecting text (and moving cursor) (#4589)
See https://github.com/flutter/flutter/pull/14275 for framework side change.

Also includes some minor clean-ups for consistency. 

Required for https://github.com/flutter/flutter/issues/13469.
2018-01-25 15:00:29 -08:00
Michael Goderbauer
4c82c566ed
a11y: Announce changes to cursor position on Android (#4587) 2018-01-24 16:54:14 -08:00
Abhishek Amit
93296fb4ea
Fix comment for non-string arg (#4583) 2018-01-24 16:24:12 -08:00
Yegor
2fe8b648ed
use Human Interface Guidelines for a11y and non-a11y text sizes (#4586) 2018-01-24 15:46:35 -08:00
Zachary Anderson
81817817db
Roll Dart to da1f52592ef73fe3afa485385cb995b9aec0181a (#4585) 2018-01-24 15:21:50 -08:00
Michael Goderbauer
e4cabae56f
Add a11y support for selected text (#4584) 2018-01-24 15:08:29 -08:00
Brian Osman
d715860925
Include SkBitmap and SkPaint (#4582)
Skia is trimming some of these transitive includes
2018-01-23 16:12:43 -05:00
Siva
eca1f7f27d
Update dart in engine to version 8d9d68751a505426eb5f59a9d29f103fde6bd474 (#4581)
* Update dart version in engine to 8d9d68751a505426eb5f59a9d29f103fde6bd474

* Update third party license files.

* Update license file.

* Update license file.
2018-01-23 10:03:16 -08:00
Jason Simmons
171d032f86
Roll Skia (#4579) 2018-01-22 15:01:11 -08:00
Jason Simmons
8b7ebb7730
Convert other Android clipboard formats into text (#4578)
Fixes https://github.com/flutter/flutter/issues/14093
2018-01-22 13:55:48 -08:00
amirh
5b0c2ed615
Explicitly check if the shape layer is an oval. (#4577)
isRRect returns false for RRects that are oval.

Fixes flutter/flutter#14186
2018-01-22 12:15:24 -08:00
Michael Goderbauer
c98443ee37
Echo letters and words typed into TextField back (#4574)
Fixes https://github.com/flutter/flutter/issues/13392.
2018-01-22 11:14:12 -08:00
Ali Bitek
8e9598df97 Get active Context from the Registrar (#4523) 2018-01-20 08:46:40 +01:00
Jason Simmons
6bc4e7e9e4
Make the new sysroot format the default in flutter_gdb (#4576) 2018-01-19 15:12:00 -08:00
Jason Simmons
53a9540751
libtxt: insert styled runs in reverse order if a bidi run is RTL (#4573) 2018-01-19 13:49:14 -08:00
Alexander Aprelev
e45eb692b1
Fix typo in main_win. This is follow up https://github.com/flutter/engine/pull/4564 (#4572) 2018-01-19 10:59:19 -08:00
Jason Simmons
f458d99e16
Wrapper for matrix image filters (#4567)
Fixes https://github.com/flutter/flutter/issues/14082
2018-01-19 10:01:57 -08:00
Brian Osman
77d7c961cd
Roll Skia to a9c8a05608fe32520a0899016fc28bb1f5ead355 (#4571)
Fixes https://github.com/flutter/flutter/issues/10284
2018-01-19 12:47:42 -05:00
Ian Hickson
f7b7506d05
Explain Window metrics better. (#4555) 2018-01-18 20:22:06 -08:00
Alexander Aprelev
d28dfcd9d7
Fix default value for 'packages' option to be null (#4570) 2018-01-18 17:12:29 -08:00
Alexander Aprelev
e582928a49
Accommodate flutter test --preview-dart-2 on windows and linux (#4564)
* Support .packages option in frontend_server, bundle_path in main_mac.

This is needed to be able to run  in  mode.

* Remove byte store tests

* Remove unused import

* Fix formatting

* Enable flutter test argument passing on win and linux.

* Fix formatting
2018-01-18 16:05:19 -08:00
Alexander Aprelev
3e49d8a815
Fix host_os literal for windows (#4568)
* Fix host_os literal for windows

* Fix slashes
2018-01-18 15:03:06 -08:00
Alexander Aprelev
fc5fd6e357
Roll buildroot to pick up prebuilt dart sdk 2.0.0-dev.16.0 (#4566) 2018-01-18 14:14:26 -08:00
Siva Chandra
2b398ee227 Roll Dart to 93d8c9fe2a2c22dc95ec85866af108cfab71ad06. (#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
Ryan Macnak
5e89d7a751
Initial implementation of idle tasks for Fuchsia. (#4565) 2018-01-18 10:28:36 -08:00
Abhishek Amit
31f223f254 Add API for embedder clients to process platform events (#4549) 2018-01-17 16:59:36 -08:00
Ian Hickson
2dfeaa668d
Run "pub get" for the frontend_server package before building. (#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
d5cd548b5d
Update comment on Scenic shapes following feedback from schwa423@ (#4563) 2018-01-17 14:39:40 -08:00
Greg Spencer
4822507560
Roll buildroot to c947b7aa6a57d3c427d63692e530f23b1f77d81e (#4561) 2018-01-17 12:11:36 -08:00
Ian Hickson
f3f005c457
Analysis cleanup of the Dart in the Engine repo (#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
6de9931c36 Train frontend_server snapshot (#4560)
Reland 86430be68a8294fa6ef3002ee5aba27a50ce3ca6 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
7173a158db
Announce when checked status changes on Android (#4557)
Fixes https://github.com/flutter/flutter/issues/14092
2018-01-16 23:10:17 -08:00
amirh
e1e97b9130
Fallback to compose shapes as their bounding rectangles. (#4553)
Scenic doesn't currently support arbitrary shaped frames.
2018-01-16 18:20:18 -08:00
Jason Simmons
a1328e7730
libtxt: use an ICU character iterator that can handle complex grapheme clusters (#4548) 2018-01-16 10:43:00 -08:00
Jason Simmons
a394ee04aa
libtxt: skip redundant bidi processing performed by minikin (#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
6fee2654f1
Make Canvas cullRect optional and make Rect.largest a static field. (#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
e3be1b3d4e
Revert "Train frontend_server snapshot (#4512)" (#4556)
This reverts commit 86430be68a8294fa6ef3002ee5aba27a50ce3ca6 as it
breaks Windows engine buildbot.
2018-01-16 10:05:00 -08:00
jensjoha
86430be68a Train frontend_server snapshot (#4512)
Cuts 30% from hot-reload benchmarks with `--preview-dart-2`
2018-01-15 15:59:57 +01:00
Sarah Zakarias
73a9ea68b9
Mark deprecated API in FlutterDartProject.h as unavailable (#4552) 2018-01-15 13:29:43 +01:00
Sarah Zakarias
1e23d648cb
Run Fuchsia apps without flx (#4550) 2018-01-15 11:09:01 +01:00
Michael Goderbauer
e7e94c6307
Properly identify CheckBox and RadioButton on Android (#4547) 2018-01-12 15:27:55 -08:00