-
Notifications
You must be signed in to change notification settings - Fork 6k
[fuchsia] Expose view_ref as part of dart:fuchsia initialization #15958
Conversation
7970bf8 to
fa4b341
Compare
|
@chinmaygarde , @arbreng I will add tests for these, wanted to give you a heads-up on the approach i'm taking. |
arbreng
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.
What happened to exposing through the Window? Window definitely seems to be the most appropriate place according to: https://github.com/flutter/engine/blob/master/lib/ui/window.dart#L518
This would also avoid the issue you have where pure dart apps have to use a bogus/null ViewRef
| return handle; | ||
| } | ||
|
|
||
| static Handle takeViewRef() { |
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.
Add // TODO: refactor Handle to an EventPair
Also, is there any issue open for those TODOs?
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.
I don't think there is, I will create one.
| void Initialize(fidl::InterfaceHandle<fuchsia::sys::Environment> environment, | ||
| zx::channel directory_request) { | ||
| zx::channel directory_request, | ||
| zx::eventpair view_ref) { |
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.
Can we make this view_ref optional? Then you can set it to null in dart and avoid the dummy_view_ref below
| fidl::InterfaceHandle<fuchsia::sys::Environment> environment, | ||
| zx::channel directory_request); | ||
| zx::channel directory_request, | ||
| zx::eventpair view_ref); |
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.
Same here, I would make the view_ref optional
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.
Good call, I will make the optional change.
iskakaushik
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.
What happened to exposing through the Window? Window definitely seems to be the most appropriate place according to: https://github.com/flutter/engine/blob/master/lib/ui/window.dart#L518
This would also avoid the issue you have where pure dart apps have to use a bogus/null ViewRef
As we discussed, I was considering exposing these on window. window would've been the perfect place if we decided to expose some kind of view_id across all platforms. Given that we have this use-case only on Fuchsia currently, I'm inclined to expose this on fuchsia.dart as a way to incubate this api. If at some point we decide that this is universal across all platforms, we can move it to window.
|
LGTM modulo David's comments |
arbreng
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.
LGTM
|
Landing this with the intent of adding tests once we have the test framework ready. Filed: flutter/flutter#49447 |
flutter/engine@51a7964...4218f80 git log 51a7964..4218f80 --first-parent --oneline 2020-01-25 [email protected] Roll fuchsia/sdk/core/mac-amd64 from 7fqYj... to 35pbn... (flutter/engine#15984) 2020-01-25 [email protected] updating the versions of the browsers for flutter web engine unit tests (flutter/engine#15977) 2020-01-25 [email protected] Eliminate unused import in Android embedding (flutter/engine#15975) 2020-01-24 [email protected] Prevent duplicate plugin registration in FlutterEnginePluginRegistry. (#49365) (flutter/engine#15956) 2020-01-24 [email protected] retry logic for another cipd upload (flutter/engine#15974) 2020-01-24 [email protected] Ensure GetFixturesPath works on Fuchsia (flutter/engine#15978) 2020-01-24 [email protected] [web] Calling platform message callback after copy (flutter/engine#15950) 2020-01-24 [email protected] [fuchsia] Expose view_ref as part of dart:fuchsia initialization (flutter/engine#15958) 2020-01-24 [email protected] Refactor ShellTest to allow for different ShellTestPlatformViews (flutter/engine#15972) 2020-01-24 [email protected] Cache computed window.physicalSize in a FrameReference (flutter/engine#15955) 2020-01-24 [email protected] the the fix (flutter/engine#15973) 2020-01-24 [email protected] Optimize drawRRect to use dom_canvas (flutter/engine#15970) 2020-01-24 [email protected] Remove paint apply in draw image (flutter/engine#15969) 2020-01-24 [email protected] Roll fuchsia/sdk/core/mac-amd64 from 6_pZp... to 7fqYj... (flutter/engine#15966) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
…ion (flutter#15958)" This reverts commit 5d7c2a9.
fixes flutter/flutter#47178