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 56 of file gpu_surface_vulkan_impeller.cc.

59 : delegate_(delegate) {
60 if (!context || !context->IsValid()) {
61 return;
62 }
63
64 auto aiks_context = std::make_shared<impeller::AiksContext>(
66 if (!aiks_context->IsValid()) {
67 return;
68 }
69
70 impeller_context_ = std::move(context);
71 aiks_context_ = std::move(aiks_context);
72 is_valid_ = !!aiks_context_;
73}
static std::shared_ptr< TypographerContext > Make()
std::shared_ptr< ContextGLES > context

References context, and impeller::TypographerContextSkia::Make().

◆ ~GPUSurfaceVulkanImpeller()

flutter::GPUSurfaceVulkanImpeller::~GPUSurfaceVulkanImpeller ( )
overridedefault

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceVulkanImpeller::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 79 of file gpu_surface_vulkan_impeller.cc.

79 {
80 return is_valid_;
81}

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