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

Non painting platform views #30003

Merged

Conversation

harryterkelsen
Copy link
Contributor

@harryterkelsen harryterkelsen commented Nov 30, 2021

If a platform view is declared as invisible, do not create an overlay for it.

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 Hixie said 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.

@harryterkelsen harryterkelsen added the Work in progress (WIP) Not ready (yet) for review! label Nov 30, 2021
@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Nov 30, 2021
@google-cla google-cla bot added the cla: yes label Nov 30, 2021
@@ -92,6 +92,8 @@ class HtmlViewEmbedder {
/// The list of view ids that should be composited, in order.
List<int> _compositionOrder = <int>[];

int _numVisibleViews = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

return _invisibleViews.contains(viewType);
} else {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: return viewType != null && _invisibleViews.contains(viewType);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

void webOnlySetPluginHandler(Future<void> Function(String, ByteData?, PlatformMessageResponseCallback?) handler) {
void webOnlySetPluginHandler(
Future<void> Function(String, ByteData?, PlatformMessageResponseCallback?)
handler) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@harryterkelsen harryterkelsen merged commit d280475 into flutter:main Dec 1, 2021
flar added a commit that referenced this pull request Dec 1, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 2, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 2, 2021
zanderso pushed a commit to flutter/flutter that referenced this pull request Dec 2, 2021
* 9b200e1 Roll Dart SDK from 9f61c2487bbd to 3a963ff14181 (7 revisions) (flutter/engine#30011)

* fada035 Use WindowInfoTracker.Companion.getOrCreate instead of the short version (flutter/engine#30012)

* d280475 Non painting platform views (flutter/engine#30003)

* b420c16 [macOS] MacOS Keyboard properly handles multi-char characters (flutter/engine#30005)

* 0a6098b [Win32, keyboard] Fix dead key events that don't have the dead key mask (flutter/engine#30004)

* 8ac9366 Fix sceneElement analysis error (flutter/engine#30038)

* 5ad06c2 Share the io_manager between parent and spawn engine (flutter/engine#29915)

* 69be405 Run Dart VM tasks on the engine's ConcurrentMessageLoop instead the VM's separate thread pool. (flutter/engine#29819)

* c85a129 Roll Dart SDK from 3a963ff14181 to 8bb2e56ec900 (4 revisions) (flutter/engine#30045)

* abf6c34 Eliminate hardcoded scale factor in a11y scroll (flutter/engine#30013)

* d184d9b Roll Skia from fa183572bfd3 to d3399178196e (17 revisions) (flutter/engine#30047)

* 476ed30 Roll web_installers simulators package (flutter/engine#30035)

* 62113c4 Revert dart to 9f61c2487bbd (flutter/engine#30056)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-web Code specifically for the web engine Work in progress (WIP) Not ready (yet) for review!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants