Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::GPUSurfaceVulkanImpeller Class Referencefinal

#include <gpu_surface_vulkan_impeller.h>

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

Public Member Functions

 GPUSurfaceVulkanImpeller (std::shared_ptr< impeller::Context > context)
 
 ~GPUSurfaceVulkanImpeller () override
 
bool IsValid () override
 
- Public Member Functions inherited from flutter::Surface
 Surface ()
 
virtual ~Surface ()
 
virtual bool IsValid ()=0
 
virtual std::unique_ptr< SurfaceFrameAcquireFrame (const SkISize &size)=0
 
virtual SkMatrix GetRootTransformation () const =0
 
virtual GrDirectContextGetContext ()=0
 
virtual std::unique_ptr< GLContextResultMakeRenderContextCurrent ()
 
virtual bool ClearRenderContext ()
 
virtual bool AllowsDrawingWhenGpuDisabled () const
 
virtual bool EnableRasterCache () const
 
virtual std::shared_ptr< impeller::AiksContextGetAiksContext () 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 ( std::shared_ptr< impeller::Context context)
explicit

Definition at line 18 of file gpu_surface_vulkan_impeller.cc.

19 {
20 if (!context || !context->IsValid()) {
21 return;
22 }
23
24 auto renderer = std::make_shared<impeller::Renderer>(context);
25 if (!renderer->IsValid()) {
26 return;
27 }
28
29 auto aiks_context = std::make_shared<impeller::AiksContext>(
31 if (!aiks_context->IsValid()) {
32 return;
33 }
34
35 impeller_context_ = std::move(context);
36 impeller_renderer_ = std::move(renderer);
37 aiks_context_ = std::move(aiks_context);
38 is_valid_ = true;
39}
static std::shared_ptr< TypographerContext > Make()

◆ ~GPUSurfaceVulkanImpeller()

flutter::GPUSurfaceVulkanImpeller::~GPUSurfaceVulkanImpeller ( )
overridedefault

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceVulkanImpeller::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 45 of file gpu_surface_vulkan_impeller.cc.

45 {
46 return is_valid_;
47}

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