A GPU surface backed by VkImages provided by a GPUSurfaceVulkanDelegate. More...
#include <gpu_surface_vulkan.h>
Public Member Functions | |
| GPUSurfaceVulkan (GPUSurfaceVulkanDelegate *delegate, const sk_sp< GrDirectContext > &context, bool render_to_surface) | |
| Create a GPUSurfaceVulkan while letting it reuse an existing GrDirectContext. | |
| ~GPUSurfaceVulkan () override | |
| bool | IsValid () override |
| std::unique_ptr< SurfaceFrame > | AcquireFrame (const DlISize &size) override |
| DlMatrix | GetRootTransformation () const override |
| GrDirectContext * | GetContext () override |
Public Member Functions inherited from flutter::Surface | |
| Surface () | |
| virtual | ~Surface () |
| virtual std::unique_ptr< GLContextResult > | MakeRenderContextCurrent () |
| virtual bool | ClearRenderContext () |
| virtual bool | AllowsDrawingWhenGpuDisabled () const |
| virtual bool | EnableRasterCache () const |
| virtual std::shared_ptr< impeller::AiksContext > | GetAiksContext () const |
| virtual SurfaceData | GetSurfaceData () const |
Static Public Member Functions | |
| static SkColorType | ColorTypeFromFormat (const VkFormat format) |
A GPU surface backed by VkImages provided by a GPUSurfaceVulkanDelegate.
Definition at line 26 of file gpu_surface_vulkan.h.
| flutter::GPUSurfaceVulkan::GPUSurfaceVulkan | ( | GPUSurfaceVulkanDelegate * | delegate, |
| const sk_sp< GrDirectContext > & | context, | ||
| bool | render_to_surface | ||
| ) |
Create a GPUSurfaceVulkan while letting it reuse an existing GrDirectContext.
Definition at line 22 of file gpu_surface_vulkan.cc.
|
overridedefault |
|
overridevirtual |
Implements flutter::Surface.
Definition at line 36 of file gpu_surface_vulkan.cc.
References flutter::GPUSurfaceVulkanDelegate::AcquireImage(), FML_DLOG, FML_LOG, FlutterVulkanImage::format, FlutterVulkanImage::image, image, impeller::TSize< T >::IsEmpty(), IsValid(), flutter::SurfaceFrame::FramebufferInfo::supports_readback, surface, and TRACE_EVENT0.
|
static |
Definition at line 141 of file gpu_surface_vulkan.cc.
References format.
Referenced by MakeSkSurfaceFromBackingStore().
|
overridevirtual |
Implements flutter::Surface.
Definition at line 101 of file gpu_surface_vulkan.cc.
|
overridevirtual |
Implements flutter::Surface.
Definition at line 95 of file gpu_surface_vulkan.cc.
|
overridevirtual |
Implements flutter::Surface.
Definition at line 32 of file gpu_surface_vulkan.cc.
Referenced by AcquireFrame().