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

Conversation

@loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Feb 27, 2024

Updates Windows engine's data structures to use a map of views.

This is a refactoring with no semantic changes. Flutter Windows's APIs restrict users to 0 or 1 view only - it is not possible to create multiple views yet.

One small step for Windows. One giant leap for multi-view.

Part of flutter/flutter#143765
Part of flutter/flutter#142845

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.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

This looks great! Was going to suggest using non-member begin/end for looking up from iterables, but we're not at all consistent about this in the engine and if anything, a brief grep suggests that we mostly use foo.begin() and only sometimes use begin(foo), only saves one character either way! If this were a template, I'd push for it though!

LGTM stamp from a Japanese personal seal

@loic-sharma loic-sharma added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 27, 2024
@auto-submit auto-submit bot merged commit 64a375d into flutter:main Feb 27, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 28, 2024
64a375de9c [Windows] Make the engine own a map of views (flutter/engine#51017)
73480bf11d Rename some classes in the engine_build_configs package (flutter/engine#51016)
2756f14a46 Remove rewrapper prefix from compiler commands for clang-tidy (flutter/engine#51001)
0f727a5b31 Improve, test, and fix a bug related to `adb logcat` filtering. (flutter/engine#51012)
ab4d6db3f1 Move vulkan-deps to //flutter/third_party/vulkan-deps (flutter/engine#51013)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants