Flutter Engine
 
Loading...
Searching...
No Matches
flutter::GPUSurfaceVulkanImpeller Class Referencefinal

#include <gpu_surface_vulkan_impeller.h>

Inheritance diagram for flutter::GPUSurfaceVulkanImpeller:
flutter::Surface

Public Member Functions

 GPUSurfaceVulkanImpeller (GPUSurfaceVulkanDelegate *delegate, std::shared_ptr< impeller::Context > context)
 
 ~GPUSurfaceVulkanImpeller () override
 
bool IsValid () override
 
- Public Member Functions inherited from flutter::Surface
 Surface ()
 
virtual ~Surface ()
 
virtual bool ClearRenderContext ()
 
virtual bool AllowsDrawingWhenGpuDisabled () const
 
virtual SurfaceData GetSurfaceData () const
 

Detailed Description

Definition at line 19 of file gpu_surface_vulkan_impeller.h.

Constructor & Destructor Documentation

◆ GPUSurfaceVulkanImpeller()

flutter::GPUSurfaceVulkanImpeller::GPUSurfaceVulkanImpeller ( GPUSurfaceVulkanDelegate delegate,
std::shared_ptr< impeller::Context context 
)
explicit

Definition at line 49 of file gpu_surface_vulkan_impeller.cc.

52 : delegate_(delegate) {
53 if (!context || !context->IsValid()) {
54 return;
55 }
56
57 auto aiks_context = std::make_shared<impeller::AiksContext>(
59 if (!aiks_context->IsValid()) {
60 return;
61 }
62
63 impeller_context_ = std::move(context);
64 aiks_context_ = std::move(aiks_context);
65 is_valid_ = !!aiks_context_;
66}
static std::shared_ptr< TypographerContext > Make()

References impeller::TypographerContextSkia::Make().

◆ ~GPUSurfaceVulkanImpeller()

flutter::GPUSurfaceVulkanImpeller::~GPUSurfaceVulkanImpeller ( )
overridedefault

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceVulkanImpeller::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 72 of file gpu_surface_vulkan_impeller.cc.

72 {
73 return is_valid_;
74}

The documentation for this class was generated from the following files: