Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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 24 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 53 of file gpu_surface_vulkan_impeller.cc.

56 : delegate_(delegate) {
57 if (!context || !context->IsValid()) {
58 return;
59 }
60
61 auto aiks_context = std::make_shared<impeller::AiksContext>(
63 if (!aiks_context->IsValid()) {
64 return;
65 }
66
67 impeller_context_ = std::move(context);
68 aiks_context_ = std::move(aiks_context);
69 is_valid_ = !!aiks_context_;
70}
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 76 of file gpu_surface_vulkan_impeller.cc.

76 {
77 return is_valid_;
78}

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