-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] add basic Impeller+Vulkan support to embedder API. #55490
Conversation
|
Integration with context vk is a bit messy, since the emebdder expects to provide a lot of objects that context vk was already creating. |
|
@jonahwilliams awesome 👍. I'll test it out when I'm back in the office; October 14th. |
|
Also I haven't looked into it yet, but using the compositor interface bypasses some of the embedder API; Fuschia dev mentioned this. My plans include moving to the compositor interface in the near future. |
|
Sorry I don't follow |
| auto proc_addr = | ||
| vulkan_get_instance_proc_address(vk_instance, "vkGetInstanceProcAddr"); | ||
|
|
||
| std::shared_ptr<flutter::EmbedderExternalViewEmbedder> view_embedder = |
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.
Unrelated: The embedder.cc entrypoint is becoming a monster. We should separate it out into different TUs for easier perursal.
| break; | ||
| if (enable_impeller) { | ||
| FML_LOG(ERROR) << "Unimplemented"; | ||
| break; |
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.
IIRC, this should return nullptr. That should return the right error code to the embedder. We can file a bug for followup.
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.
Breaking here leaves the render_target unique_ptr as nullptr which accomplishes the same thing
…157766) flutter/engine@ed587dc...b394e0c 2024-10-29 [email protected] Roll Dart SDK from c9180e9de9e8 to 6e55dfe77483 (1 revision) (flutter/engine#56184) 2024-10-28 [email protected] [canvaskit] Deduplicate golden test file names (flutter/engine#56143) 2024-10-28 [email protected] [Flutter GPU] Replace HostBuffer with Dart version. (flutter/engine#56054) 2024-10-28 [email protected] [Impeller] add basic Impeller+Vulkan support to embedder API. (flutter/engine#55490) 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] 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
…r/engine#55490) Works on GLFW example app with no validation errors.
Works on GLFW example app with no validation errors.