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

Commit f3ecb6e

Browse files
committed
Make sksurface from vkimage
1 parent 2cac170 commit f3ecb6e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

shell/gpu/gpu_surface_vulkan.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,9 @@ GrDirectContext* GPUSurfaceVulkan::GetContext() {
6767
return skia_context_;
6868
}
6969

70+
sk_sp<SkSurface> GPUSurfaceVulkan::AcquireSurfaceFromVulkanImage(
71+
VkImage image) {
72+
73+
}
74+
7075
} // namespace flutter

shell/gpu/gpu_surface_vulkan.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class GPUSurfaceVulkan : public Surface {
6060
size_t current_backbuffer_index_;
6161

6262
fml::WeakPtrFactory<GPUSurfaceVulkan> weak_factory_;
63+
64+
sk_sp<SkSurface> AcquireSurfaceFromVulkanImage(VkImage image);
65+
6366
FML_DISALLOW_COPY_AND_ASSIGN(GPUSurfaceVulkan);
6467
};
6568

0 commit comments

Comments
 (0)