1340 Commits

Author SHA1 Message Date
Dan Field
0a6301d5ca Listen for display refresh changes and report them correctly (flutter/engine#29800)
This makes sure the frame timings recorder and vsync waiter implementations get
the correct refresh rate if or when it adjusts at runtime. This should be OK
because we'll only query the refresh rate when the display metrics actually
change, which is much less frequent than every frame. I experimented with an NDK
implementation in the previous patch, but that vastly restricts the API levels
we can support, and currently on API 30 and 31 it just calls Java methods
through JNI anyway.

I've refactored the way Display updates are reported so that AndroidDisplay can
just dynamically get the refresh rate correctly. These values are used by a
service protocol extension and by some Stopwatches on the CompositorContext.

See also #29765

Fixes flutter/flutter#93688
Fixes flutter/flutter#93698
2021-11-18 13:09:26 -08:00
Zachary Anderson
78d9e276e2 Fix some clang-tidy lints for Linux host_debug (flutter/engine#29734) 2021-11-18 13:08:01 -08:00
Zachary Anderson
03c0f7e453 Add 'explicit' to header files (flutter/engine#29741) 2021-11-17 12:49:16 -08:00
Brandon DeRosier
4136d0117f Enable Skia's Vulkan backend on all non-mobile platforms, and test SwiftShader Vulkan on all GL unittests platforms (flutter/engine#29520) 2021-11-16 15:27:25 -08:00
Jia Hao
a9005b330e Add test annotation (flutter/engine#29642) 2021-11-12 14:31:02 -08:00
Wyte Krongapiradee
0a5dbbe522 Do not update system UI overlays when the SDK version condition is not met (flutter/engine#29643) 2021-11-11 12:29:31 -08:00
Dan Field
72d93b0308 Remove outdated TODO (flutter/engine#29641)
I forgot to remove this when I fixed the bug.
2021-11-10 11:22:16 -08:00
Jason Simmons
fda46d0aff Use -linkoffline to provide the Android Javadoc package list (flutter/engine#29629) 2021-11-10 11:18:02 -08:00
gaaclarke
4dc52a2e91 Share the GrContext between lightweight engines (flutter/engine#28809) 2021-11-09 13:23:38 -08:00
Emmanuel Garcia
63ef8c0480 Call Dart messenger methods in DartExecutor (flutter/engine#29599) 2021-11-08 17:57:31 -08:00
Emmanuel Garcia
b2eb38f7de Add default implementations to new methods added to BinaryMessenger (flutter/engine#29596) 2021-11-08 17:32:31 -08:00
gaaclarke
6a7b4f5f65 Implemented concurrent TaskQueues (flutter/engine#29491) 2021-11-08 10:11:54 -08:00
Zachary Anderson
9dffe2d4f6 Revert "Reland Display Features support (Foldable and Cutout) (#29447)" (flutter/engine#29574)
This reverts commit 28a1c9b21b205a436fad64c9d0bced6b22b4b6a3.
2021-11-06 20:43:44 -07:00
Emmanuel Garcia
69ac1ed4dc Fix race condition introduced by background platform channels (flutter/engine#29377) 2021-11-05 15:35:43 -07:00
Andrei Diaconu
28a1c9b21b Reland Display Features support (Foldable and Cutout) (flutter/engine#29447) 2021-11-04 13:45:46 -07:00
Jason Simmons
84a29d044f Provide a default handler for the flutter/navigation channel (flutter/engine#29511) 2021-11-04 07:43:02 -07:00
gaaclarke
efb969910b Made DartMessenger use the injected executor service for executing message handlers. (flutter/engine#29458) 2021-11-02 15:05:02 -07:00
Matej Knopp
66a708c874 Enable partial repaint for iOS/Metal (flutter/engine#28801) 2021-11-02 07:20:01 -07:00
Emmanuel Garcia
28a5062995 Reland "Set system bar appearance using WindowInsetsController" (flutter/engine#29403) 2021-10-29 16:13:03 -07:00
Jia Hao
302c2be546 Add traces to Android embedding (flutter/engine#29230) 2021-10-28 20:59:32 -07:00
Ryan Macnak
1dfe28a310 Inform the Dart VM when snapshots are safe to use with madvise(DONTNEED). (flutter/engine#29320)
Bug: https://github.com/dart-lang/sdk/issues/44019
Bug: https://github.com/flutter/flutter/issues/92120
2021-10-28 16:53:41 -07:00
Gary Qian
38d660407d Revert "Temporarily delete deprecated Android v1 embedding (#29248)" (flutter/engine#29378)
This reverts commit fba89ec6a1ec5387102eb55592e2606d8de7e496.
2021-10-28 01:49:50 -07:00
Gary Qian
fba89ec6a1 Temporarily delete deprecated Android v1 embedding (flutter/engine#29248) 2021-10-28 01:00:12 -07:00
Ahmed Ashour
acdc8a5c8b Fix typos (flutter/engine#29280) 2021-10-27 20:30:31 -07:00
Tong Mu
79249cf134 [macOS] Reset keyboard states on engine restart (flutter/engine#29283)
With this PR, the state of the keyboard system will be reset when the engine is reset (typically during a hot restart.)
2021-10-27 17:03:41 -07:00
Jason Simmons
2c8702d096 Build a specialized snapshot for launching the service isolate in profile mode on Android (flutter/engine#29245) 2021-10-27 11:03:01 -07:00
gaaclarke
8c4ccf58e2 Reapply: Android background platform channels (flutter/engine#29346)
* Revert "Revert "Android Background Platform Channels (#29147)""

This reverts commit 7ed91e14ccc1f5ffc4cb13d1d37e27d370c8f7cd.

* Made this PR less of a breaking change by keeping setMessageHandler's signature the same
2021-10-27 10:11:36 -07:00
Gary Qian
b08aa7ebb1 Add FlutterPlayStoreSplitApplication to v2 embedding (flutter/engine#29241) 2021-10-26 17:28:01 -07:00
Dan Field
d5c36f87f5 Revert "Android Background Platform Channels (#29147)" (flutter/engine#29344)
This reverts commit c40f7670e7aff3a42be2cbac0df067009278d639.
2021-10-26 14:52:13 -07:00
godofredoc
ae68d0409b Update documentation links to point to main branch. (flutter/engine#29326) 2021-10-26 10:48:02 -07:00
gaaclarke
c40f7670e7 Android Background Platform Channels (flutter/engine#29147) 2021-10-21 16:08:02 -07:00
utzcoz
824d6575f6 Refactor FlutterViewTest with extracting common test code to methods (flutter/engine#29226) 2021-10-19 21:18:01 -07:00
Ren You
1ca163b449 Revert "Set system bar appearance using WindowInsetsControllerCompat instead of the deprecated View#setSystemUiVisibility (#29060)" (flutter/engine#29206)
This reverts commit 4a20ae9ca503214f62afe22acc92721d7f648fec.
2021-10-15 05:25:14 -07:00
Wyte Krongapiradee
4a20ae9ca5 Set system bar appearance using WindowInsetsControllerCompat instead of the deprecated View#setSystemUiVisibility (flutter/engine#29060) 2021-10-14 13:08:03 -07:00
utzcoz
1309cb66c2 Bump maximum supported sdk to 30 for Robolectric (flutter/engine#28886) 2021-10-12 17:58:01 -07:00
Gary Qian
3eb6488fa3 Always increment response_id for Android platform messages (flutter/engine#29090) 2021-10-11 23:03:02 -07:00
Jason Simmons
f30e10db45 Map the Android VsyncWaiter frame start time to the clock used by fml::TimePoint (flutter/engine#29093) 2021-10-11 13:13:01 -07:00
Dan Field
293ef51fc6 Reland Android systrace (flutter/engine#29080)
* Reland "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (#29071)"

This reverts commit a7660964b41f64991369341364a43c93317a4a51.

* More logcat

* more logs

* Remove wait

* Avoid plugin registrar exception

* DEFAULT instead of LAUNCHER

* use am instead of monkey

* Update android_systrace_test.py
2021-10-08 15:55:50 -07:00
Zachary Anderson
a7660964b4 Revert "Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (#28903)" (flutter/engine#29071)
This reverts commit 79063b3c6105c3cf8be757ed6d31dd9a055060d9.
2021-10-07 22:08:10 -07:00
Dan Field
79063b3c61 Use the systrace recorder if systracing is enabled at startup, and enable systracing in release mode on Android (flutter/engine#28903) 2021-10-07 15:59:46 -07:00
Kate Lovett
96c6b95d33 Update contrast enforcement for null values (flutter/engine#29055) 2021-10-07 09:48:01 -07:00
Emmanuel Garcia
c47526067a Remove some deprecated APIs from the Android embedding (flutter/engine#28977) 2021-10-06 15:38:02 -07:00
Emmanuel Garcia
93ca319487 Expose updateSystemUiOverlays in FlutterActivity and FlutterFragment (flutter/engine#29013) 2021-10-04 19:03:02 -07:00
Jason Simmons
79c7cfdc91 Defer setup of the default font manager if the embedding prefetched the font manager (flutter/engine#28987) 2021-10-04 13:23:02 -07:00
Dan Field
8424cd2767 Avoid GCing aggressively during startup, and forward trim messages beyond low to application (flutter/engine#28891) 2021-09-30 12:46:49 -07:00
gaaclarke
4a47a9f60d fixed android unit tests (rotted before CI is running) (flutter/engine#28938) 2021-09-29 14:19:44 -07:00
Camille Simon
0eddf5471a Deprecate SplashScreenProvider (flutter/engine#28921) 2021-09-29 11:11:06 -07:00
ColdPaleLight
3bd57ac05a Make FlutterEngineGroup support initialRoute (flutter/engine#28884) 2021-09-29 11:02:37 -07:00
Emmanuel Garcia
03fc3660f6 Destroy overlay surfaces when the rasterizer is torn down (flutter/engine#28894) 2021-09-28 14:38:02 -07:00
gaaclarke
452b0bd2f9 added unit tests for the android embedder that run on android devices (flutter/engine#28784) 2021-09-28 14:02:18 -07:00