-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Conversation
impeller::TextureDescriptor yDesc; | ||
yDesc.storage_mode = impeller::StorageMode::kDevicePrivate; | ||
yDesc.format = impeller::PixelFormat::kR8UNormInt; | ||
yDesc.size = impeller::ISize(yTex.width, yTex.height); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! LGTM
…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
…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
…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
…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
…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
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.