3550 Commits

Author SHA1 Message Date
Jia Hao
573de315ec Fix crash when splash screen is not specified for FlutterFragmentActivity (flutter/engine#27062) 2021-07-28 20:09:01 -07:00
Jia Hao
bd6e47b7d0 Use preDraw for the Android embedding (flutter/engine#27645) 2021-07-28 19:59:02 -07:00
Jason Simmons
27d018d498 Log all Skia trace events if the --trace-skia flag is passed (flutter/engine#27680) 2021-07-27 14:34:02 -07:00
Matej Knopp
9bfd5820b9 macOS: Do not use dispatch queue when canceling idle callback (flutter/engine#27732)
Fixes https://github.com/flutter/flutter/issues/86932

Relying on dispatch queue to bump call on main thread in this instance
is problematic because platform plugin can hold the dispatch queue.
Using performSelectorOnMainThread: instead works, because it is
processed by the CFRunLoop independent of dispatch queue.
2021-07-27 14:06:17 -07:00
wqyfavor
3ad5050003 Fix potential crash of frame management while merging threads for platform views. (flutter/engine#27695) 2021-07-27 09:09:02 -07:00
moko256
bd9583cd04 Windows: Implement GetPreferredLanguages for UWP and support l18n (flutter/engine#27311) 2021-07-23 16:41:57 -07:00
Kaushik Iska
a3b9412f5c Set AppStartUp UserTag from engine (flutter/engine#27646) 2021-07-23 13:31:02 -07:00
Jason Simmons
c2676c854e Remove an assertion in AndroidImageGenerator::Register that was dereferencing a null (flutter/engine#27674) 2021-07-23 12:39:01 -07:00
Hakkyu Kim
487b8743cb Removes unnecessary error message: "Invalid read in StandardCodecByteStreamReader" for cpp BasicMessageChannel (flutter/engine#26956) 2021-07-22 14:26:01 -07:00
Jaeheon Yi
0821f23495 [ui] Coerce DOWN pointer to inside the view. (flutter/engine#27632)
Floating point error can cause edge pointer coordinates to fall
slightly outside of the view's logical bounding box, causing a failure
of gesture recognition in Dart code. This patch coerces the DOWN pointer
to inside the logical view boundary.

https://github.com/flutter/flutter/issues/86882
2021-07-22 14:15:38 -07:00
Emmanuel Garcia
d39722bd71 Fix NPE and remove global focus listener when tearing down the view (flutter/engine#27655) 2021-07-22 13:58:09 -07:00
freiling
6ad8eb6ec7 [fuchsia] boot lockup debugging improvements (flutter/engine#27459) 2021-07-22 13:06:01 -07:00
Siva
ff9b2b6507 Uncomment terminate unit test (Dart side fix has rolled into the engine) (flutter/engine#27649) 2021-07-22 10:25:01 -07:00
Dan Field
298ab24bf5 Reland use a pbuffer surface when in the background (flutter/engine#27629)
* Reland "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (#27607)"

This reverts commit 78663924741a29aeca10648015e39db6fbd28be4.

* Do not let gradle download SDK deps
2021-07-21 15:07:35 -07:00
Brandon DeRosier
e2c58529b5 Add native Android image decoder supported by API 28+ (flutter/engine#26746) 2021-07-21 13:52:29 -07:00
Dan Field
c39eb51448 Fix android zip bundles (flutter/engine#27604) 2021-07-21 12:56:02 -07:00
George Wright
95afd688f9 Add a unit test for FlutterFrameBufferProvider (flutter/engine#27591) 2021-07-21 12:47:07 -07:00
Siva
3635ddb39f Comment out terminate unit test until fix lands in Dart. (flutter/engine#27625)
* Comment out terminate unit test until fix lands in Dart.

* Address review comments.
2021-07-21 12:24:16 -07:00
Tong Mu
1a71c70587 Update key mapping to the latest logical key values (flutter/engine#25883)
This PR updates the key mapping tables of every platform according to the change to keycode_gen.
2021-07-21 01:58:09 -07:00
Tamir Duberstein
1481993626 Add fuchsia.net.name.Lookup (flutter/engine#27595)
fuchsia.net.NameLookup is transitioning to fuchsia.net.name.Lookup.
2021-07-20 22:57:07 -07:00
Dan Field
7866392474 Revert "Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (#27141)" (flutter/engine#27607)
This reverts commit 9520cdc6c45bc45f8e944618a0ff641fd5f5429a.
2021-07-20 16:40:55 -07:00
Tamir Duberstein
8739c597bf Reformat manifests (flutter/engine#27603)
cmx: $FUCHSIA_DIR/scripts/style/json-fmt.py
cml: $FUCHSIA_DIR/out/default/host-tools/formatjson5 --replace
2021-07-20 16:19:36 -07:00
Dan Field
9520cdc6c4 Use a Pbuffer surface when the onscreen surface is not available for snapshotting on Android (flutter/engine#27141) 2021-07-20 16:05:54 -07:00
David Worsham
934eced2e4 fuchsia: Add hermetic SessionConnection tests; rename (flutter/engine#27327) 2021-07-20 13:52:09 -07:00
Alexander Brusher
014a087925 Accounts for inverse pixel ratio transform in screen rects. (flutter/engine#27427) 2021-07-20 13:09:42 -07:00
Hunter Freyer
0e844e9ff4 Replace array<fml::Thread, 3> with ThreadHost. (flutter/engine#27455)
This is follow-up clean-up for #26193

Co-authored-by: Hunter Freyer <hjfreyer@google.com>
2021-07-20 12:46:10 -07:00
Siva
002299df34 Add embedder unit test that reproduces https://github.com/dart-lang/sdk/issues/46275 (flutter/engine#27392)
* Add embedder unit test that reproduces the problem described in
https://github.com/dart-lang/sdk/issues/46275

* Address code review comments.
2021-07-20 11:14:54 -07:00
Matej Knopp
b651e140ae MacOS: Release backbuffer surface when idle (flutter/engine#27189) 2021-07-20 07:11:02 -07:00
George Wright
8a12a40f1c Add unit tests for Dart entrypoint arguments on Windows (flutter/engine#27497) 2021-07-19 12:55:27 -07:00
Matej Knopp
becc215ba8 Do not resolve external textures unless there is new frame available (flutter/engine#27508) 2021-07-19 12:51:02 -07:00
Matej Knopp
ffa8f3ad2e MacOS: Fix external texture not working in OpenGL mode (flutter/engine#27506) 2021-07-19 12:46:02 -07:00
Darren Chan
cbcbbf7102 Migrate non-scenic-based fuchsia tests to cfv2. (flutter/engine#27241)
This PR also wraps up the soft transition for #27417.

Because some unit tests depend on the real Scenic which isn't hermetic, `flutter_runner_tests` and `flutter_runner_scenic_tests` aren't currently compatible with cfv2.
This will change once a FakeScenic is created (https://fxbug.dev/79873).

See https://fxbug.dev/79691.
2021-07-16 23:41:41 -04:00
chunhtai
da36fcdab6 Fixes scrollable behavior in voiceover (flutter/engine#27461)
* Fixes scrollable behavior in voiceover

* fix crash
2021-07-16 12:53:42 -07:00
George Wright
9f8c03501e Add a unit test for dart entrypoint args on macOS (flutter/engine#27465) 2021-07-16 10:04:07 -07:00
kartik garasia
e71aa68555 JavaDoc error fix (flutter/engine#27080)
Javadoc error Local engine build fails while building android targets
Related to issue #85346
2021-07-15 14:24:52 -07:00
ColdPaleLight
20bf73d974 Fixes some bugs when multiple Flutter VC shared one engine (flutter/engine#27320) 2021-07-15 13:31:01 -07:00
Matej Knopp
3c4ae00555 Fix duplicated keys with CONTROL key toggled (flutter/engine#27301) 2021-07-15 13:26:02 -07:00
Darren Chan
fe39238f25 Delete legacy focus platform message request handlers. (flutter/engine#27057)
Delete the following platform message request handlers:
 - `HostView.getCurrentFocusState`
 - `HostView.getNextFocusState`
 - `View.requestFocus`

See https://fxbug.dev/79740.
2021-07-15 16:24:36 -04:00
Nils Strelow
da681c31c6 Deeplink URI fragment on Android and iOS (flutter/engine#26185) 2021-07-15 10:51:02 -07:00
David Worsham
d707f91336 fuchsia: Log vsync stats in inspect (flutter/engine#27433) 2021-07-15 10:44:18 -07:00
Jason Simmons
219e22b0e2 Update the Fuchsia runner to use fpromise instead of fit::promise (flutter/engine#27416) 2021-07-14 19:31:06 -07:00
Felipe Archondo
573fe3dd0b [fuchsia] fix race in DefaultSessionConnection (flutter/engine#27377)
DefaultSessionConnection can run on two threads - the UI and raster
threads. This change ensures that all variables they both touch is
guarded by the mutex.

Fixes: fxbug.dev/80625
2021-07-14 22:10:15 -04:00
Kaushik Iska
45cf4e9ab1 [fuchsia] Use FFI to get System clockMonotonic (flutter/engine#27353) 2021-07-14 11:01:58 -07:00
Ajmal Kunnummal
a1fe1c8ca5 Make FlutterFragment usable without requiring it to be attached to an Android Activity. (Attempt 2) (flutter/engine#27397) 2021-07-14 10:51:02 -07:00
Zachary Anderson
0bf2a8c460 Revert "Make FlutterFragment usable without requiring it to be attached to an Android Activity. (#27332)" (flutter/engine#27382)
This reverts commit ba49de983781dd2267d50780b696e981f74fd84d.
2021-07-13 20:35:14 -07:00
Ajmal Kunnummal
ba49de9837 Make FlutterFragment usable without requiring it to be attached to an Android Activity. (flutter/engine#27332) 2021-07-13 17:11:02 -07:00
Chinmay Garde
dbc0d4d4b1 Ensure gclient sync is successful on an M1 Mac host. (flutter/engine#27354) 2021-07-13 15:26:02 -07:00
Dan Field
1872500bb0 Build the robolectric tests by default for debug armv7 (flutter/engine#27345) 2021-07-13 08:45:22 -07:00
Jason Simmons
6d0433831e Do not use the centralized graphics context options for Fuchsia Vulkan contexts (flutter/engine#27347) 2021-07-13 07:41:02 -07:00
Martin Kustermann
91ff075a74 Make dart wrappable classes use only one native field (flutter/engine#27350)
* Make dart wrappable classes use only one native field

It appears like the second native field is never really used for
anything: It is set, cleared and verified it was cleared, but that is
it.

=> The only native field that is necessary is the `this` pointer of the
   equivalent C++ object.
=> The [DartWrapperInfo] object which was stored as second native field
   is always accessible via the virtual `GetDartWrapperInfo()` method on
   `this`.
2021-07-13 16:39:22 +02:00