Commit Graph

3913 Commits

Author SHA1 Message Date
Siva
1890290fdb Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9 (flutter/engine#5985)
* Roll Dart to version 1be785ae2ddb1754a184cd638ab719e94d86b4e9

This rolls includes the following changes :

1be785ae2d Clean up some dead code
7b9fb893d2 [vm] Add a service method for 'invoke' as the dual to 'eval'.
099f1504fa Mention -O flag in CHANGELOG
79f69abace [vm/compiler] breakage fix: add missing break
96a1e9985f Fix the pkg bot
7818db20a7 Add analysis hint for invalid use of @visibleForTemplate code.
71d96019d1 [vm/compiler] Introduce 64-bit NEGATE - all archs.
5013a2ccc4 Remove spurious line.
ef2f777625 Mark some analyzer tests as being flaky
cf560fe17b Fix a couple of the tests failing on the analyzer with fasta parser bot
63c11693e6 [gardening] Fix language_2/type_variable_promotion_test.
d0f28884ff [VM] Fix expression evaluation implementation: Never register temporary/unused classes with the system.
e2a1807fc2 [gardening] Update status for io/compile_all_test in PRODUCT AOT mode
f7ff739448 Insert date of 2.0.0 release in Changelog
bcabad6014 [vm] Fix SIMARM64 build on Windows.
af02ccae83 [infra] Fix filesets for new vm-kernel-precomp builders
8e2f28e264 Update homebrew to drop the @2 tab and fix for 2.0
ba119d7292 [VM] Remove "$compiler == precompiler" sections from language_2_precompiler.status
f3a2c0e28f [release] Prepare changelog for 2.1.0-dev.0.0
88cba7d860 [vm/kernel/bytecode] Fix arguments descriptor for List._fromLiteral call in bytecode
bd45ec0c4b [vm, gc] Refactor PageSpace::CollectGarbage to ensure the safepoint and task count remain well-scoped even with early exits.
8195fd8c64 Repair dart2js/string_interpolation_test
a0b335ac6c Try no implicit casts in pkg/analyzer_cli.
3d25d3761b Update pub - leave packages directories alone
327db5e9ab [vm] Fix kernel_isolate use_field_guard flag for kbc
a1ca88f554 Resolve invocation arguments to parameters.

* Address source format error.
2018-08-09 16:24:16 -07:00
Ben Konyi
3b80ac90f5 Fixed invalid call site of runWithEntrypointAndCallback (flutter/engine#5984) 2018-08-09 12:42:59 -07:00
Ben Konyi
b5aa93de7c Removed callback for HeadlessDartRunner (flutter/engine#5983) 2018-08-09 11:21:51 -07:00
skia-flutter-autoroll
caa739319e Roll src/third_party/skia 9c9611fcc1bb..0d5d0659a684 (7 commits) (flutter/engine#5980)
Auto-roller completed checks. Merging.
2018-08-08 18:57:19 -04:00
Alexander Aprelev
5de4538b21 Fix IsolateStart event kind. (flutter/engine#5978) 2018-08-08 15:45:26 -07:00
Keerti Parthasarathy
96656470a0 Annotate deprecated methods with @Deprecated (flutter/engine#5976) 2018-08-08 13:02:41 -07:00
skia-flutter-autoroll
3f80c63efd Roll src/third_party/skia 0c5b0b1dd692..9c9611fcc1bb (13 commits) (flutter/engine#5977)
Auto-roller completed checks. Merging.
2018-08-08 15:35:40 -04:00
Jonah Williams
f9378b453c make ios text affinity behavior match android (flutter/engine#5971) 2018-08-08 10:54:29 -07:00
skia-flutter-autoroll
9944a6b80a Roll src/third_party/skia f5402004c4a6..0c5b0b1dd692 (11 commits) (flutter/engine#5975)
Auto-roller completed checks. Merging.
2018-08-08 12:13:07 -04:00
skia-flutter-autoroll
dcd74b747e Roll src/third_party/skia 20714bdf90f3..4856f5fa596d (1 commits) (flutter/engine#5973)
Auto-roller completed checks. Merging.
2018-08-08 05:36:06 -04:00
skia-flutter-autoroll
14d9c814b3 Roll src/third_party/skia faeef7837210..20714bdf90f3 (11 commits) (flutter/engine#5970)
Auto-roller completed checks. Merging.
2018-08-07 22:20:24 -04:00
amirh
8eb80d3e3d Complete the AndroidView resize call only after a new frame is ready. (flutter/engine#5968)
This allows the framework to know that a frame with the resized view is
ready and to behave deterministically to workaround the jank issue
described in flutter/flutter/19572
2018-08-07 18:56:34 -07:00
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 4a12df930a.
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 e9e6e8a2bf.
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