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

Conversation

@ditman
Copy link
Member

@ditman ditman commented Nov 11, 2023

This change:

  • Adds a boolean to multiViewEnabled (defaults to false).
  • Removes unused canvasKitMaximumSurfaces value.

Part of: flutter/flutter#137377

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added the platform-web Code specifically for the web engine label Nov 11, 2023
Copy link
Contributor

@harryterkelsen harryterkelsen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

Ship it!

/// Multi-view mode allows apps to:
///
/// * Start without a `hostElement`.
/// * Add/remove views (`hostElements`) from JS while the application is running.
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@ditman
Copy link
Member Author

ditman commented Nov 14, 2023

Did I really break a pointer test with this? Odd. I'm going to rebase and see what CI thinks about my branch :/


external DomElement? get hostElement;

@JS('multiViewEnabled')
Copy link
Member Author

Choose a reason for hiding this comment

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

We can give any "external" (JS) name we want to this property, like "multiViewEnabledExperimental" or something scary like that. Do we need that, or do we just call it "multiViewEnabled"? @mdebbar?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to keep the name multiViewEnabled to avoid a little bit of churn down the line. Anyone who makes use of this flag ought to know that this is experimental and could break at any time.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think I agree with this!

@ditman
Copy link
Member Author

ditman commented Nov 14, 2023

I'll land this after @eyebrowsoffire "flutter.js in tests" PR lands, to not cause any conflicts on this end.

@ditman ditman force-pushed the add-multiview-toggle branch from 8395279 to 1a0aae0 Compare November 15, 2023 01:26
@ditman
Copy link
Member Author

ditman commented Nov 15, 2023

Rebased and ready to land, applying autosubmit!

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 15, 2023
@ditman ditman changed the title [web] Config: + multiViewEnabled. - canvasKitMaximumSurfaces. [web] JSConfig: Add multiViewEnabled value. Nov 15, 2023
@auto-submit auto-submit bot merged commit bc5bbd3 into flutter:main Nov 15, 2023
@ditman ditman deleted the add-multiview-toggle branch November 15, 2023 02:11
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants