Commit Graph

1818 Commits

Author SHA1 Message Date
George Wright 591d149f97 Make flutter_tester support multithreaded testing, and run all Dart tests in both single and multithreaded configurations (#13273)
Make flutter_tester support multithreaded testing, and run all Dart tests in both single and multithreaded configurations

This also modifies Shell::GetUIIsolateLastError() and Shell::EngineHasLivePorts() so that they must be called from the UI task runner.
2019-10-22 14:10:57 -07:00
gaaclarke 25fcf531fa Made restarting the Engine remember the last entrypoint that was used. (#13289) 2019-10-22 14:01:52 -07:00
Ryan Macnak f6900001eb Roll Dart to 6a65ea9cad4b014f88d2f1be1b321db493725a1c. (#13294)
Remove dead shared snapshot arguments to Dart_CreateIsolateGroup.

6a65ea9cad4b [vm] Remove shared snapshot and reused instructions features.
db8370e36147 [gardening] Fix frontend-server dartdevc windows test.
4601bd7bffea Modified supertype check error message to be more descriptive.
0449905e2de6 [CFE] Add a serialization-and-unserialization step to strong test
c8b903c2f94f Update CHANGELOG.md
2a12a13d9684 [Test] Skips emit_aot_size_info_flag_test on crossword.
b26127fe01a5 [cfe] Add reachability test skeleton
2019-10-22 13:14:20 -07:00
Chinmay Garde f77aa45eb4 Disable flaky test ShellTest_ReportTimingsIsCalled. (#13292)
Investigation is tracked in https://github.com/flutter/flutter/issues/43192
2019-10-22 11:56:31 -07:00
Jason Simmons f0c9edcfa5 Do not request executable permission on Fuchsia file mappings unless it is required (#13290)
Fixes https://github.com/flutter/flutter/issues/43273
2019-10-22 11:24:51 -07:00
gaaclarke 0d43469b40 Revert "Made restarting the Engine remember the last entrypoint that was used. (#13264)" (#13287)
This reverts commit 9dd585c463.
2019-10-22 10:03:10 -07:00
gaaclarke 9dd585c463 Made restarting the Engine remember the last entrypoint that was used. (#13264) 2019-10-22 08:10:57 -07:00
Matt Carroll e6e35a90df Forwards Activity result to FlutterFragment in FlutterFragmentActivity. (#13214) 2019-10-21 17:05:46 -07:00
George Wright 73c6a4a1e2 Ensure we call into Engine from the UI taskrunner in Shell::EngineHasLivePorts (#13265) 2019-10-21 15:56:03 -07:00
Jonah Williams 6ab23d37d5 fix NPE in accessibility bridge (#13255) 2019-10-21 15:35:34 -07:00
Jason Simmons 4ecfa62735 Hold a reference to the Skia unref queue in UIDartState (#13239)
Obtaining the SkiaUnrefQueue through the IOManager is unsafe because
UIDartState has a weak pointer to the IOManager that can not be dereferenced
on the UI thread.
2019-10-21 14:15:03 -07:00
Kaushik Iska 84a3365dcf Add templates to generate fuchsia host bundles (#13158)
This is part of an effort to separate generation of
host artifacts and target artifacts for fuchsia. The
`fuchsia_host_bundle` template aims to capture all the
artifacts that are specific to a given host.

The next step would be to bundle these are separate CIPD
packages for mac and linux (only x64 hosts)

internal planning doc: go/flutter-fuchsia-packaging
2019-10-21 12:51:38 -07:00
Matt Carroll ee91881ccc Adds Dark Mode support to new Android embedding (this was accidentally missed previously). (#13215) 2019-10-18 12:46:09 -07:00
Jacek Fedoryński 748b64049c Add repeatCount to FlutterKeyEvent (#13176)
Adds repeatCount field to KeyEventChannel.FlutterKeyEvent. We set it
to the value returned by KeyEvent.getRepeatCount() and add it to the
message passed through the channel with the intention of exposing it
in RawKeyEventDataAndroid on the framework side.

flutter/flutter#42855
2019-10-18 10:39:19 -07:00
Chinmay Garde c57ffbf0ec Specify a human readable reason for an error from the embedder API. (#13218)
Fixes https://github.com/flutter/flutter/issues/42480
2019-10-17 17:29:37 -07:00
George Wright 8b9761940b Re-enable WeakPtr ThreadChecker and fix associated failures (#12257)
This re-enables thread safety checks for WeakPtr. WeakPtrs can't be used on a thread other than the one the WeakPtrFactory was created on.

This fixes the unit tests and adds a getUnsafe() method to WeakPtr to work around the remaining unresolved locations where we are using WeakPtr unsafely.
2019-10-17 14:10:16 -07:00
Chinmay Garde c92613bc49 Re-land "Custom compositor layers must take into account the device pixel ratio."
This reverts commit 6c2381da60 and applies iOS fixes.
2019-10-17 14:07:51 -07:00
Chinmay Garde 6a1988647f Add trace events around custom compositor callbacks. (#13212) 2019-10-17 14:07:11 -07:00
Chinmay Garde 6c2381da60 Revert "Custom compositor layers must take into account the device pixel ratio. (#13193)" (#13211)
This reverts commit e53d10c345.
2019-10-17 12:59:27 -07:00
Chinmay Garde e53d10c345 Custom compositor layers must take into account the device pixel ratio. (#13193)
The contents rendered into the backing stores are already correctly scaled.
The initial implementation assumed this also held true for the metrics obtained
via embedded view parameters.

Fixes b/142699417
2019-10-17 12:04:13 -07:00
stuartmorgan 508146f0de Add a task runner for the Win32 embedding (#13043)
Adds a task runner, and exposes API to allow application-level runloops to know when they need to next call the API to process engine events. Internally, sends null events to wake up the app runloop when new events are scheduled to ensure the wait time is updated accordingly.

Fixes #36420
2019-10-16 21:30:06 -07:00
Chinmay Garde a925df1898 Remove incomplete static thread safety annotations. (#13151)
Fixes https://github.com/flutter/flutter/issues/42704.
2019-10-16 17:28:31 -07:00
Jason Simmons 72420a3ba5 Remove redundant call to updateEditingState in sendKeyEvent (#13175)
See https://github.com/flutter/flutter/issues/41005
2019-10-16 15:53:12 -07:00
liyuqian 43b33d743a Revert "Update compiler to Clang 10. (#13177)" (#13181)
This reverts commit 6fd50b36dd.

Reason: this seems to break our LUCI build https://ci.chromium.org/p/flutter/g/engine/console

Specifically, the following new issues were found that need to addressed before attempting
this roll again.

1. More symbols are being exported out of libflutter.so on Android https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8899411714657886224/+/steps/Verify_exported_symbols_on_release_binaries/0/stdout

2. ___isOSVersionAtLeast is not present on iOS https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8899411714401395808/+/steps/build_ios_debug_sim/0/stdout
2019-10-16 14:25:10 -07:00
Chinmay Garde 6fd50b36dd Update compiler to Clang 10. (#13177) 2019-10-16 13:01:20 -07:00