3901 Commits

Author SHA1 Message Date
skia-flutter-autoroll
d6c9bfe76d Roll src/third_party/skia 177742435e52..faeef7837210 (1 commits) (flutter/engine#5967)
Auto-roller completed checks. Merging.
2018-08-07 19:03:24 -04:00
liyuqian
bc75dc5d85 Call drawPath without clip if possible (flutter/engine#5952)
It turns out that Skia is much slower at drawing paint inside a clipped
path than directly drawing that path. (Average frame time of 22ms vs
18ms in flutter_galary transition test.)
2018-08-07 14:47:32 -07:00
amirh
9d38d63147 Allow freezing a texture. (flutter/engine#5938)
This is needed to avoid jank when resizing an embedded Android view.
See
https://github.com/flutter/flutter/issues/19572#issuecomment-410400724
2018-08-07 14:43:19 -07:00
Ben Konyi
10e272f154 Persist DartCallbackCache contents across launches (flutter/engine#5947)
* Updated DartCallbackCache to write callback cache to disk which is
restored on engine startup
* Ensure cache isn't moved off disk in iOS
2018-08-07 14:37:19 -07:00
Jason Simmons
ee273cef41 libtxt: truncate paragraph width to an integer in order to match Blink's behavior (flutter/engine#5962)
See https://github.com/flutter/flutter/issues/18665
2018-08-07 13:56:34 -07:00
Todd Volkert
21c7a646ca Don't implicitly fall through in switch statement (flutter/engine#5964) 2018-08-07 13:18:26 -07:00
Jonah Williams
3b5e35f4b9 Apply translation to accessibility tree when in landscape (flutter/engine#5950) 2018-08-07 13:09:18 -07:00
Ben Konyi
6d5fce84ae Reland "Updated background execution implementation for Android" (flutter/engine#5954)
* Reland "Updated background execution implementation for Android" w/ JNI fixes for merge breakages

This reverts commit 4a12df930a9d0dc8db3410cd557f35f4a584dbd0.
2018-08-07 12:42:22 -07:00
skia-flutter-autoroll
80c7778595 Roll src/third_party/skia 36216fb0acbc..177742435e52 (15 commits) (flutter/engine#5963)
Auto-roller completed checks. Merging.
2018-08-07 15:40:24 -04:00
skia-flutter-autoroll
4431e99739 Roll src/third_party/skia e6d0618f677c..36216fb0acbc (11 commits) (flutter/engine#5960)
Auto-roller completed checks. Merging.
2018-08-07 12:17:24 -04:00
skia-flutter-autoroll
dc3d89607a Roll src/third_party/skia 01d9a344b575..e6d0618f677c (1 commits) (flutter/engine#5958)
Auto-roller completed checks. Merging.
2018-08-07 08:47:24 -04:00
skia-flutter-autoroll
99e9fcb2a4 Roll src/third_party/skia fdf05f4ff4e9..01d9a344b575 (1 commits) (flutter/engine#5957)
Auto-roller completed checks. Merging.
2018-08-06 22:57:24 -04:00
skia-flutter-autoroll
6e5bc910ca Roll src/third_party/skia 641ac7daa81c..fdf05f4ff4e9 (3 commits) (flutter/engine#5953)
Auto-roller completed checks. Merging.
2018-08-06 19:11:24 -04:00
liyuqian
7357a29311 Remove travis directory (flutter/engine#5935)
This reflects that we no longer uses travis. Scripts are moved to ci folder.
2018-08-06 15:06:49 -07:00
Alexander Markov
4a12df930a Revert "Updated background execution implementation for Android" (flutter/engine#5949)
This reverts commit e9e6e8a2bf81e394a5903e7cc573644225bf8b95.
2018-08-06 14:10:23 -07:00
Jonah Williams
9d5862edbb Add hasImplicitScrolling SemanticFlag and support in Android bridge (flutter/engine#5941) 2018-08-06 13:57:00 -07:00
Ben Konyi
e9e6e8a2bf Updated background execution implementation for Android 2018-08-06 12:27:57 -07:00
Petr Hosek
438316f98d Replace acquire+release thread annotation with excludes (flutter/engine#5944)
The behavior of acquire+release annotation handling has changed in
https://reviews.llvm.org/D49355 which breaks the build with the new
Clang. However, as has been pointed out, the acquire+release isn't
the right way to prevent double locking as the annotations negate
each other; the correct way is to use excludes or negative requires.
Using excludes annotations also requires using std::lock_guard instead
of std::unique_lock because the latter doesn't have the thread
annotations due to deferred locking which is not needed in Flutter and
so std::lock_guard is a sufficient alternative.
2018-08-05 18:25:43 -07:00
liyuqian
970df7c987 Call drawPaint instead of drawPath if there's clip (flutter/engine#5937)
If we want to avoid the bleeding edge artifact (flutter/flutter#18057 (comment)) using saveLayer, we have to call drawPaint instead of drawPath as anti-aliased drawPath will always have such artifacts.

This is discovered when I try to add golden tests for such bleeding artifacts using our new Clip enum. Here's the updated golden files: flutter/goldens@cb1fa8a?short_path=57b30ce#diff-57b30cea9b10b7ca689009854e12d70e
2018-08-03 17:00:00 -07:00
amirh
3cc77fae93 Flush all embedded Android views on hot restart. (flutter/engine#5929)
* Flush all embedded Android view on hot restart.

Adds an OnEngineRestarted method to PlatformView, this is currently only
implemented for Android where we need to use it for embedded views.

* review comments followup

* rename to OnPreEngineRestart, call before Clone
2018-08-03 08:54:12 -07:00
amirh
c5dfa3a45c Don't drop MotionEvents with unknown tool type. (flutter/engine#5931)
Instead, send them with the new unknown PointerDeviceKind.

We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.

This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
James D. Lin
922785f8a8 Add an explicit -[FlutterViewController init] implementation (flutter/engine#5924)
* Add an explicit `-[FlutterViewController init]` implementation

`-[FlutterViewController init]` currently works because it inherits
the `-[UIViewController init]` convenience initializer that invokes
the `-[UIViewController initWithNibName:bundle:]` designated
initializer that `FlutterViewController` overrides.

However, this doesn't seem to be explicitly documented, so it's a bit
confusing (or at least non-obvious), and it seems potentially
brittle.  Add an explicit implementation of `-[FlutterViewController
init]` instead.
2018-08-02 14:03:42 -07:00
Michael Goderbauer
53e707207e Switch to minimal ICU data config for flutter (flutter/engine#5922) 2018-08-01 17:24:07 -07:00
skia-flutter-autoroll
a6a03bef6b Roll src/third_party/skia afea9c32acd9..ed8bc196bd56 (20 commits) (flutter/engine#5923)
Auto-roller completed checks. Merging.
2018-08-01 19:13:46 -04:00
Michael Goderbauer
608a991a03 Roll ICU to 62.1 and harfbuzz to 1.8.4 (flutter/engine#5913) 2018-08-01 14:56:53 -07:00
Chinmay Garde
f352631388 Make FML task runner methods virtual so that FXL adaptors in Fuchsia are possible. (flutter/engine#5921) 2018-08-01 14:18:33 -07:00
Chinmay Garde
3e5e79b737 Fix sundry Fuchsia build issues after the tonic/fxl migration. (flutter/engine#5920) 2018-08-01 13:29:45 -07:00
Michael Goderbauer
ef6840b65f Update license script & analyze it on CI (flutter/engine#5917) 2018-08-01 11:41:47 -07:00
Michael Goderbauer
3d1d8c269d Change CI badge from travis to cirrus (flutter/engine#5919) 2018-08-01 11:04:08 -07:00
Jonah Williams
3a3f6ca0ee Initial support for more finely-grained a11y features on Window (flutter/engine#5901) 2018-07-31 18:18:19 -07:00
skia-flutter-autoroll
a369115f3e Roll src/third_party/skia 1935aa3d27cd..6cfa29738295 (7 commits) (flutter/engine#5912)
Auto-roller completed checks. Merging.
2018-07-31 19:23:45 -04:00
James D. Lin
650df92607 Deprecate -[FlutterDartProject initFromDefaultSourceForConfiguration] (#18886) (flutter/engine#5858)
* Deprecate -[FlutterDartProject initFromDefaultSourceForConfiguration] (#18886)

`-[FlutterDartProject initFromDefaultSourceForConfiguration]` no
longer seems very useful.  It calls `-initWithPrecompiledDartBundle:`
or `-initWithFlutterAssets:dartMain:packages:`, but since it now
passes `nil` for all arguments, both paths end up doing the same
thing.

Additionally, `-initFromDefaultSourceForConfiguration` is awkward to
use in Swift.  The automatically generated Swift interface is:

    public convenience init!(fromDefaultSourceForConfiguration: ())

and it's not obvious how to call that.

Let's deprecate `-initFromDefaultSourceForConfiguration` and instead
expect callers to use the existing `-init` method. (We can make
`-init` do different things for different build configurations later
if necessary.)

Bonus: Rename some parameters to make it more obvious when they may
be `nil`.
2018-07-31 11:49:57 -07:00
Jonah Williams
7fe563529c Add word movement granularities to android (flutter/engine#5902) 2018-07-30 17:53:17 -07:00
nathanrogersgoogle
c0c383fb44 Remove the "VSYNC" trace event on Fuchsia (flutter/engine#5907)
Don't emit a "VSYNC" event when running on Fuchsia, as traces on Fuchsia
are typically recorded across the whole system, causing the events to
collide with each other.
2018-07-30 15:40:41 -07:00
liyuqian
97978a70b5 Replace travis with cirrus (flutter/engine#5899)
Using a custom container image, we reduce the test time from 5 minutes to 2 minutes as we no longer run gclient sync from zero.

In the future, we may be able to cache the ninja output in the image (which probably gets updated daily) so we no longer compile from zero.
2018-07-30 12:00:31 -07:00
liyuqian
578c3ef6f5 Use container and GKE to accelerate build (flutter/engine#5897)
This reduces the build time from 5 minutes to 3 minutes as we no longer need to cold start a GCE instance. Moreover, we can now compile the host engine using this container.
2018-07-30 11:59:54 -07:00
liyuqian
8d64f93386 Add docker container generation scripts (flutter/engine#5898)
These scripts generate the image we used to test flutter/engine in Cirrus.
2018-07-30 10:40:45 -07:00
Jason Simmons
332832d84c Clear the EGL context only if our context is currently active (flutter/engine#5895)
Fixes https://github.com/flutter/flutter/issues/19566
2018-07-30 09:52:39 -07:00
Jason Simmons
d1cc979466 Return proper JSON-RPC error responses from service protocol failures (flutter/engine#5889)
Fixes https://github.com/flutter/flutter/issues/19571
2018-07-30 09:52:12 -07:00
skia-flutter-autoroll
75599d80b8 Roll src/third_party/skia 227424b57d28..c06b8a4e0ca3 (22 commits) (flutter/engine#5904)
Auto-roller completed checks. Merging.
2018-07-30 09:49:45 -04:00
amirh
30940056b0 Fix wrong conversion of MotionEvent to Flutter's PointerEvent kind. (flutter/engine#5894)
We were sending the toolType values as-is which is wrong, e.g touch
events showed in Flutter as mouse events.
2018-07-27 16:12:26 -07:00
liyuqian
df1d0db25d Build Android engine in presubmit using Cirrus and GCE (flutter/engine#5882)
The whole process is less than 5 minutes using a 24-CPU GCE instance.

I may further improve it by using containers and more CPUs in the following PRs.
2018-07-27 15:16:11 -07:00
Jason Simmons
b3b626547f Log uncaught exceptions from JNI calls at a higher priority (flutter/engine#5891) 2018-07-27 14:33:44 -07:00
liyuqian
543ac43471 Update license script README (flutter/engine#5890)
Note that the license script won't work if there are untracked files
2018-07-27 14:12:50 -07:00
mikejurka
05395a3a17 [scenic] Expose compositor context from rasterizer. (flutter/engine#5739)
Needed by code to support Scenic's new API for views.
2018-07-26 21:46:07 -07:00
skia-flutter-autoroll
fe67ee628e Roll src/third_party/skia f27b479f957d..5f1dc76d0cec (1 commits) (flutter/engine#5884)
Auto-roller completed checks. Merging.
2018-07-26 19:27:49 -04:00
Stanislav Baranov
caf14ff364 Fix compilation trace memory management problem
This fixes issue with compilation trace buffer getting released upon return from VM code to Dart code, before it gets change to save to a file in natives.dart saveCompilationTrace().
2018-07-26 16:08:12 -07:00
Ben Konyi
e690f59b65 Revert "Dart SDK roll for 2018/07/26 (#5876)" (flutter/engine#5881)
This reverts commit a64160715fb57120c7089fcf4e99a6a8d2aab89a.
2018-07-26 15:09:23 -07:00
Chinmay Garde
050b93b822 Update GetDirectoryName namespace to the one in FML on Linux. (flutter/engine#5879) 2018-07-26 13:40:29 -07:00
skia-flutter-autoroll
a238a2aad7 Roll src/third_party/skia 897f256413c1..f27b479f957d (12 commits) (flutter/engine#5878)
Auto-roller completed checks. Merging.
2018-07-26 16:08:49 -04:00