Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@iskakaushik
Copy link
Contributor

@iskakaushik iskakaushik commented Jan 24, 2020

@auto-assign auto-assign bot requested a review from gaaclarke January 24, 2020 02:27
@iskakaushik iskakaushik requested review from chinmaygarde and removed request for gaaclarke January 24, 2020 02:27
@iskakaushik
Copy link
Contributor Author

@chinmaygarde , @arbreng I will add tests for these, wanted to give you a heads-up on the approach i'm taking.

@iskakaushik iskakaushik requested a review from gw280 January 24, 2020 02:35
Copy link
Contributor

@arbreng arbreng left a 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() {
Copy link
Contributor

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?

Copy link
Contributor Author

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) {
Copy link
Contributor

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);
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

@iskakaushik iskakaushik left a 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.

@gw280
Copy link
Contributor

gw280 commented Jan 24, 2020

LGTM modulo David's comments

Copy link
Contributor

@arbreng arbreng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iskakaushik
Copy link
Contributor Author

Landing this with the intent of adding tests once we have the test framework ready. Filed: flutter/flutter#49447

@iskakaushik iskakaushik merged commit bd8c955 into flutter:master Jan 24, 2020
@iskakaushik iskakaushik deleted the expose_viewref branch January 24, 2020 21:42
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 25, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 25, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 25, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 25, 2020
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 25, 2020
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
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow access to Scenic VewRefs in Flutter on Fuchsia.

4 participants