Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Impeller] finish wiring up external textures for macOS embedder. #55347

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Sep 22, 2024

Fixes flutter/flutter#135898

Note that the macOS embedder is still using the apple texture cache object from the SkiaMetalContext. it can't initialize an equivalent ImpellerMetalContext without creating a second copy of the content context and all that jazz, so I'm leaving that as is for now.

@jonahwilliams jonahwilliams marked this pull request as ready for review September 24, 2024 00:28
@jonahwilliams jonahwilliams changed the title finish wiring up external textures for macOs embedder. finish wiring up external textures for macOS embedder. Sep 24, 2024
impeller::TextureDescriptor yDesc;
yDesc.storage_mode = impeller::StorageMode::kDevicePrivate;
yDesc.format = impeller::PixelFormat::kR8UNormInt;
yDesc.size = impeller::ISize(yTex.width, yTex.height);
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this code was hitting asserts running the AV video player example app because the sizes supplied didn't match the actual texture sizes. I changed the logic to read the texture descriptor size from the textures themselves so this can't get out of sync.

@jonahwilliams jonahwilliams changed the title finish wiring up external textures for macOS embedder. [Impeller] finish wiring up external textures for macOS embedder. Sep 24, 2024
@jonahwilliams jonahwilliams requested a review from bdero September 24, 2024 18:04
Copy link
Member

@bdero bdero left a comment

Choose a reason for hiding this comment

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

Awesome! LGTM

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2024
@auto-submit auto-submit bot merged commit 34878d9 into flutter:main Sep 24, 2024
30 checks passed
@jonahwilliams jonahwilliams deleted the embedder_h_macos branch September 24, 2024 18:31
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 24, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 24, 2024
…155625)

flutter/engine@2a13c3a...7cd3d0b

2024-09-24 [email protected] Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) (flutter/engine#55397)
2024-09-24 [email protected] Add a check for the surface if it is valid (flutter/engine#55277)
2024-09-24 [email protected] [Flutter GPU] Add setStencilReference to RenderPass. (flutter/engine#55270)
2024-09-24 [email protected] [Impeller] finish wiring up external textures for macOS embedder. (flutter/engine#55347)

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],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155625)

flutter/engine@2a13c3a...7cd3d0b

2024-09-24 [email protected] Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) (flutter/engine#55397)
2024-09-24 [email protected] Add a check for the surface if it is valid (flutter/engine#55277)
2024-09-24 [email protected] [Flutter GPU] Add setStencilReference to RenderPass. (flutter/engine#55270)
2024-09-24 [email protected] [Impeller] finish wiring up external textures for macOS embedder. (flutter/engine#55347)

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],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…lutter#155625)

flutter/engine@2a13c3a...7cd3d0b

2024-09-24 [email protected] Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) (flutter/engine#55397)
2024-09-24 [email protected] Add a check for the surface if it is valid (flutter/engine#55277)
2024-09-24 [email protected] [Flutter GPU] Add setStencilReference to RenderPass. (flutter/engine#55270)
2024-09-24 [email protected] [Impeller] finish wiring up external textures for macOS embedder. (flutter/engine#55347)

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],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155625)

flutter/engine@2a13c3a...7cd3d0b

2024-09-24 [email protected] Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) (flutter/engine#55397)
2024-09-24 [email protected] Add a check for the surface if it is valid (flutter/engine#55277)
2024-09-24 [email protected] [Flutter GPU] Add setStencilReference to RenderPass. (flutter/engine#55270)
2024-09-24 [email protected] [Impeller] finish wiring up external textures for macOS embedder. (flutter/engine#55347)

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],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 27, 2024
…lutter#155625)

flutter/engine@2a13c3a...7cd3d0b

2024-09-24 [email protected] Roll Dart SDK from 24ed9af6a961 to 7af8c4882e07 (1 revision) (flutter/engine#55397)
2024-09-24 [email protected] Add a check for the surface if it is valid (flutter/engine#55277)
2024-09-24 [email protected] [Flutter GPU] Add setStencilReference to RenderPass. (flutter/engine#55270)
2024-09-24 [email protected] [Impeller] finish wiring up external textures for macOS embedder. (flutter/engine#55347)

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],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: desktop autosubmit Merge PR when tree becomes green via auto submit App platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Impeller] Video playback error on macOS.
2 participants