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

Conversation

@dkwingsmt
Copy link
Contributor

@dkwingsmt dkwingsmt commented Feb 22, 2023

This PR removes a check for surface_ when querying ExternalViewEmbedder.

This logic is apparently not needed, and dated back in the day when ExternalViewEmbedder was child of the Surface. Later it was separated out, but this logic was kept (see #22470 by @iskakaushik; the first version of that PR removed this logic, but the second version kept it, likely by accident according to my talk with him).

It's part of the project to adapt the painting module to multi-view. In the future, Rasterizer will contain multiple Surfaces instead of just one, so the references to surface_ need to be removed. Some of them will be delegated to other classes, some be multiplied along with surface_, but this one is special in that it doesn't make sense. I'm removing it in a separate PR to try roll it in, just in case it breaks anything.

This PR shouldn't need unit tests.

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.

@flutter-dashboard flutter-dashboard bot added the embedder Related to the embedder API label Feb 22, 2023
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@dkwingsmt dkwingsmt force-pushed the remove-surface-for-exviem branch from 0f3c943 to a9b0de1 Compare February 22, 2023 23:05
@dkwingsmt dkwingsmt merged commit 6a7ea36 into flutter:main Feb 23, 2023
@dkwingsmt dkwingsmt deleted the remove-surface-for-exviem branch February 23, 2023 21:52
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 23, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 24, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 24, 2023
QuncCccccc pushed a commit to flutter/flutter that referenced this pull request Feb 24, 2023
…ions) (#121383)

* 6a7ea36c8 Remove surface check when querying ExternalViewEmbedder (flutter/engine#39803)

* 8496df610 Fix referenes in docs (flutter/engine#39828)

* 2f4b81be1 Roll Skia from fff6c987d803 to c23446d2da26 (10 revisions) (flutter/engine#39831)

* 167c97bc3 Revert "Match PlatformConfiguration properties to PlatformDispatcher ones (#39685)" (flutter/engine#39833)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

embedder Related to the embedder API needs tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants