Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
89cb5d26
Unverified
Commit
89cb5d26
authored
May 17, 2018
by
Alexander Aprelev
Committed by
GitHub
May 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide isolate id for rpc request to ensure they are run on correct (UI) thread. (#17616)
parent
2e24351f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vmservice.dart
packages/flutter_tools/lib/src/vmservice.dart
+8
-2
No files found.
packages/flutter_tools/lib/src/vmservice.dart
View file @
89cb5d26
...
...
@@ -905,7 +905,11 @@ class VM extends ServiceObjectOwner {
if
(!
isFlutterEngine
)
return
;
_viewCache
.
clear
();
await
vmService
.
vm
.
invokeRpc
(
'_flutter.listViews'
,
timeout:
kLongRequestTimeout
);
for
(
Isolate
isolate
in
isolates
)
{
await
vmService
.
vm
.
invokeRpc
(
'_flutter.listViews'
,
timeout:
kLongRequestTimeout
,
params:
<
String
,
dynamic
>
{
'isolateId'
:
isolate
.
id
});
}
}
Iterable
<
FlutterView
>
get
views
=>
_viewCache
.
values
;
...
...
@@ -1393,6 +1397,7 @@ class FlutterView extends ServiceObject {
assert
(
assetsDirectory
!=
null
);
await
owner
.
vmService
.
vm
.
invokeRpc
(
'_flutter.setAssetBundlePath'
,
params:
<
String
,
dynamic
>{
'isolateId'
:
_uiIsolate
.
id
,
'viewId'
:
id
,
'assetDirectory'
:
assetsDirectory
.
toFilePath
(
windows:
false
)
});
...
...
@@ -1401,7 +1406,8 @@ class FlutterView extends ServiceObject {
bool
get
hasIsolate
=>
_uiIsolate
!=
null
;
Future
<
Null
>
flushUIThreadTasks
()
async
{
await
owner
.
vm
.
invokeRpcRaw
(
'_flutter.flushUIThreadTasks'
);
await
owner
.
vm
.
invokeRpcRaw
(
'_flutter.flushUIThreadTasks'
,
params:
<
String
,
dynamic
>{
'isolateId'
:
_uiIsolate
.
id
});
}
@override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment