This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Vulkan support in the Embedder API #29391
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
99a8037
Rebase atop https://github.com/flutter/engine/pull/29520
bdero 3586854
Make sksurface from vkimage
bdero f5a46d8
Add EmbedderSurface for Vulkan, init skia contexts, correct API callb…
bdero aa07175
Make GPUSurfaceVulkan use delegate (EmbedderSurfaceVulkan) and create…
bdero e2280fd
Build fixup
bdero 0572e70
API change: Move backing store specific stuff out of FlutterVulkanImage
bdero a6a78f9
Build fixes
bdero 73fb9a9
Format
bdero 5bcd4df
embedder_test.cc format
bdero 78a5f5a
Licenses
bdero a230d2d
Gate vk config initialization
bdero 71465a3
Explicit constructor calls for VulkanHandle
bdero 9e44701
Add test context that can be passed around, create a skia context for…
bdero 6da3ce2
Format
bdero fa46278
Fix extension init segfault
bdero 07adc2d
Heap alloc the test context and surface
bdero 58c4ad0
Fix EmbedderSurfaceVulkan destruct crash
bdero 991655b
Validate vulkan render config
bdero da9ee48
Allocate image memory for test surface; parameterize a GL raster test
bdero bec156f
vk test image
bdero 37d698d
Fix vk gradient
bdero 2766172
Get render target from target
bdero 9afe4e2
Compositor gradient test
bdero 33941fc
Add test harness compositor (never finishes frame render for some rea…
bdero e26ba47
Extensions
bdero 4b28c39
Format
bdero ff68811
Licenses
bdero 39b23b9
Don't test root layer xform in vulkan (not supported in the API)
bdero 2831cba
Make TestVulkanContext destruct after the compositor, create VkImages…
bdero 0e90172
Format
bdero a5f7ec7
Parameterize CanCreateEmbedderWithCustomRenderTaskRunnerTheSameAsPlat…
bdero 3fa1598
Parameterize CompositorMustBeAbleToRenderKnownScenePixelRatioOnSurface
bdero 9f49cb0
Parameterize PlatformViewMutatorsAreValid, intrusively refcount TestV…
bdero f98c46c
Make FlutterVulkanImageHandle a uint64_t and internally cast to VkImage
bdero 2f4927c
Add format field to FlutterVulkanImage
bdero 1624ffa
Add format cast to make windows targets happy
bdero d8c7003
Add Vulkan version parameter to FlutterVulkanRendererConfig
bdero 29af39c
Fix cast
bdero fec4c06
Activate memory_requirements_2 if the Vulkan version is >= 1.1
bdero 6e11d8a
Allow the embedder to optionally supply enabled instance/device exten…
bdero 5f861aa
Make vulkan names and docstrings clearer for extensions
bdero fffac57
Inline vulkan image fields in FlutterVulkanBackingStore
bdero f207dfb
Reference issue # instead of user handle
bdero e4dd1c7
Explicitly release skia context on test vulkan context destruction to…
bdero 6a76c82
Use better names and add docstrings for the test utilities
bdero 93d67ab
Lifetime comments and remove unnecessary ref count bump
bdero 0d1687c
Use a pointer to a const FlutterVulkanImage instead of inlining field…
bdero a510bfd
Force refcounted skia contexts to collect in EmbedderSurfaceVulkan
bdero a48c201
Fix OS defines
bdero aec5449
Disable swiftshader tests for FEMU
bdero 63b879f
Revert "Disable swiftshader tests for FEMU"
bdero 2442a95
Try falling back to libvulkan.so if swiftshader is missing
bdero f5bfc9a
Use NativeLibrary to detect existence of the ICD
bdero 9f2584d
Add test debug logs to see what's going on in FEMU
bdero 166b26a
Add log so that the ICD being used is always printed
bdero 20a2368
Remove temp logs
bdero 8bbacf0
Guard against null contexts in destructors
bdero 82e8c97
Test logs
bdero eedf60b
Lazily create the backingstore_producer vulkan context
bdero 63f0b5f
Revert "Test logs"
bdero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.