-
Notifications
You must be signed in to change notification settings - Fork 6k
Started using FlutterEngineGroups by default on Android #37822
Started using FlutterEngineGroups by default on Android #37822
Conversation
5eb2b04 to
30aa146
Compare
|
cc @xster since this may have ramifications for google usage of flutter |
|
Switching the reviewer to reid since jason isn't available. Feel free to delegate to someone else. |
|
From Triage: @jason-simmons is unable to review this. Redirecting to @reidbaker . |
|
+1. I think we should do this by default. @jiahaog, this affects a bit the custom engine holders we have. I think nothing materially right out the gate, but we should also hold the engine group as well as the engine so users can easily spawn new engines from the same group. |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new plugin API LGTM.
shell/platform/android/io/flutter/embedding/engine/plugins/FlutterPlugin.java
Show resolved
Hide resolved
them accessible to plugins.
30aa146 to
36a8dc3
Compare
…ter#37822)" This reverts commit 47a358c. This commit caused a regression in the entrypoint_dart_registrant test.
* e28b26e [linux] Allow overriding asset, ICU data path (flutter/engine#38296) * 35bdb8b Roll Skia from 9f728d78f10d to f549128104ba (1 revision) (flutter/engine#38319) * 97e246c Roll Dart SDK from 358d0d1aa3e7 to 1dd5b1bf1099 (7 revisions) (flutter/engine#38320) * d9580a5 Migrate iOS text input plugin to use ARC (flutter/engine#38179) * c9e9fa5 Update web_sdk -> package test dependency to get updated package matcher (flutter/engine#38323) * a7ec07f [fuchsia] Manually roll Fuchsia Linux SDK. (flutter/engine#38324) * 61e95ba Remove doc reference to the compute method (flutter/engine#38246) * 353d694 make sure CanvasRecorder updates clip bounds methods (flutter/engine#38325) * 47a358c Started using FlutterEngineGroups by default on Android (flutter/engine#37822) * 7d8e106 Bump github/codeql-action from 2.1.35 to 2.1.36 (flutter/engine#38210) * 8915b81 Update buildroot to b2ab6e1. (flutter/engine#38329) * 4fe6206 Revert "Roll Dart SDK from 358d0d1aa3e7 to 1dd5b1bf1099 (7 revisions) (#38320)" (flutter/engine#38331) * 2ff490c Roll Skia from f549128104ba to 5e69caecd166 (11 revisions) (flutter/engine#38333) * 2225185 Add missing include to FlutterThreadSynchronizer (flutter/engine#38337) * 467cfd7 Roll Fuchsia Mac SDK from VEOIaacOA75U7PYyz... to KtItDj-MERuua77aS... (flutter/engine#38339) * 010f4ee Roll Fuchsia Linux SDK from zwfwHRSLdmV61hYqe... to urDNtEiHFAcBBhYe0... (flutter/engine#38340) * 773b435 Sped up reading with FlutterStandardCodec. (flutter/engine#38327) * 70439f6 Roll Skia from 5e69caecd166 to 62f22c9c7d67 (3 revisions) (flutter/engine#38341) * bc1647f Roll the test package used by Web in preparation for a Dart 3 SDK roll (flutter/engine#38342) * cac228a Roll Dart SDK from 358d0d1aa3e7 to 7b4d4ec3cad1 (14 revisions) (flutter/engine#38344) * 13ae6eb Revert "Started using FlutterEngineGroups by default on Android (#37822)" (flutter/engine#38351) * ed80638 Add an explicit constraint on the matcher package version to ensure Dart 3 compatibility (flutter/engine#38352) * dcafebf Roll Skia from 62f22c9c7d67 to 1b1f53d77ced (1 revision) (flutter/engine#38343) * 6f61585 Roll Fuchsia Mac SDK from KtItDj-MERuua77aS... to bn5VF1-xDf-wKjIw8... (flutter/engine#38348) * 0c00bc0 Remove 30fps cap from playgrounds (flutter/engine#38347) * 38340bb [Impeller] Fix SceneC crash for nodes with children (flutter/engine#38346) * 3a6b3f9 Roll Fuchsia Linux SDK from urDNtEiHFAcBBhYe0... to H6B0UgW07fc1nBtnc... (flutter/engine#38357) * 81b4535 Roll Skia from 1b1f53d77ced to 7b0a9d9a3008 (8 revisions) (flutter/engine#38358) * d91e208 Port touch-based tests from embedder integration test (flutter/engine#38234)
…id (flutter#37822)" (flutter#38351)" This reverts commit 13ae6eb.
* Started using FlutterEngineGroups by default on Android and making them accessible to plugins. * added docstring * format
…ter#37822)" (flutter#38351) This reverts commit 47a358c. This commit caused a regression in the entrypoint_dart_registrant test.
…ter#38367) * Revert "Revert "Started using FlutterEngineGroups by default on Android (flutter#37822)" (flutter#38351)" This reverts commit 13ae6eb. * fixed the entrypoint test * updated old test * coldpalelight's suggestion * added entrypoint args
…17242) * e28b26e [linux] Allow overriding asset, ICU data path (flutter/engine#38296) * 35bdb8b Roll Skia from 9f728d78f10d to f549128104ba (1 revision) (flutter/engine#38319) * 97e246c Roll Dart SDK from 358d0d1aa3e7 to 1dd5b1bf1099 (7 revisions) (flutter/engine#38320) * d9580a5 Migrate iOS text input plugin to use ARC (flutter/engine#38179) * c9e9fa5 Update web_sdk -> package test dependency to get updated package matcher (flutter/engine#38323) * a7ec07f [fuchsia] Manually roll Fuchsia Linux SDK. (flutter/engine#38324) * 61e95ba Remove doc reference to the compute method (flutter/engine#38246) * 353d694 make sure CanvasRecorder updates clip bounds methods (flutter/engine#38325) * 47a358c Started using FlutterEngineGroups by default on Android (flutter/engine#37822) * 7d8e106 Bump github/codeql-action from 2.1.35 to 2.1.36 (flutter/engine#38210) * 8915b81 Update buildroot to b2ab6e1. (flutter/engine#38329) * 4fe6206 Revert "Roll Dart SDK from 358d0d1aa3e7 to 1dd5b1bf1099 (7 revisions) (flutter#38320)" (flutter/engine#38331) * 2ff490c Roll Skia from f549128104ba to 5e69caecd166 (11 revisions) (flutter/engine#38333) * 2225185 Add missing include to FlutterThreadSynchronizer (flutter/engine#38337) * 467cfd7 Roll Fuchsia Mac SDK from VEOIaacOA75U7PYyz... to KtItDj-MERuua77aS... (flutter/engine#38339) * 010f4ee Roll Fuchsia Linux SDK from zwfwHRSLdmV61hYqe... to urDNtEiHFAcBBhYe0... (flutter/engine#38340) * 773b435 Sped up reading with FlutterStandardCodec. (flutter/engine#38327) * 70439f6 Roll Skia from 5e69caecd166 to 62f22c9c7d67 (3 revisions) (flutter/engine#38341) * bc1647f Roll the test package used by Web in preparation for a Dart 3 SDK roll (flutter/engine#38342) * cac228a Roll Dart SDK from 358d0d1aa3e7 to 7b4d4ec3cad1 (14 revisions) (flutter/engine#38344) * 13ae6eb Revert "Started using FlutterEngineGroups by default on Android (flutter#37822)" (flutter/engine#38351) * ed80638 Add an explicit constraint on the matcher package version to ensure Dart 3 compatibility (flutter/engine#38352) * dcafebf Roll Skia from 62f22c9c7d67 to 1b1f53d77ced (1 revision) (flutter/engine#38343) * 6f61585 Roll Fuchsia Mac SDK from KtItDj-MERuua77aS... to bn5VF1-xDf-wKjIw8... (flutter/engine#38348) * 0c00bc0 Remove 30fps cap from playgrounds (flutter/engine#38347) * 38340bb [Impeller] Fix SceneC crash for nodes with children (flutter/engine#38346) * 3a6b3f9 Roll Fuchsia Linux SDK from urDNtEiHFAcBBhYe0... to H6B0UgW07fc1nBtnc... (flutter/engine#38357) * 81b4535 Roll Skia from 1b1f53d77ced to 7b0a9d9a3008 (8 revisions) (flutter/engine#38358) * d91e208 Port touch-based tests from embedder integration test (flutter/engine#38234)
Also started made the group accessible to plugins. There are a few important plugins that spawn new engines that run in the background, this will allow them to share the isolate group across the whole app. I avoided deprecating FlutterEngine constructors until we get wider acceptance from the team.
issue: flutter/flutter#115507
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.