This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Android platform view static thread merging #19242
Merged
fluttergithubbot
merged 16 commits into
flutter:master
from
cyanglaz:android_platform_view_static_thread_merging
Jun 24, 2020
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
35af6f8
Revert "Revert "Add `GetBoundingRectAfterMutations` to EmbeddedViewPa…
fb89d64
fix compile error
825ca5a
fix external_view_embedder_unittests
7706a9f
Merge branch 'master' into android_platform_view_static_thread_merging
86967e6
draft
63f4e41
add extra bool to nativeInit
d3a554f
fix nativeInit params
227e151
parse use_embedded_view flag
994d91f
cleanup
9bdbd7f
no external view embedder if flag not set
ddd34bb
cleanup
ae011df
Merge branch 'master' into android_platform_view_static_thread_merging
a37f942
review fixes
0f922f8
formatting
66a2f6f
null check
7ccd380
Merge branch 'master' into android_platform_view_static_thread_merging
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -201,7 +201,6 @@ public void ensureInitializationComplete( | |
| + applicationInfo.nativeLibraryDir | ||
| + File.separator | ||
| + DEFAULT_LIBRARY); | ||
|
|
||
| if (args != null) { | ||
| Collections.addAll(shellArgs, args); | ||
| } | ||
|
|
@@ -234,6 +233,17 @@ public void ensureInitializationComplete( | |
| } | ||
|
|
||
| long initTimeMillis = SystemClock.uptimeMillis() - initStartTimestampMillis; | ||
|
|
||
| // TODO(cyanlaz): Remove this when dynamic thread merging is done. | ||
| // https://github.com/flutter/flutter/issues/59930 | ||
| Bundle bundle = applicationInfo.metaData; | ||
| if (bundle != null) { | ||
| boolean use_embedded_view = bundle.getBoolean("io.flutter.embedded_views_preview"); | ||
| if (use_embedded_view) { | ||
| shellArgs.add("--use-embedded-view"); | ||
| } | ||
| } | ||
|
|
||
| FlutterJNI.nativeInit( | ||
| applicationContext, | ||
| shellArgs.toArray(new String[0]), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: what about passing the flag in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
minor nit:
io.flutter.embeddedViewsPreviewThere 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.
offline discussion: We will keep the flag name same as iOS.