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

#include <gpu_surface_gl_impeller.h>

Inheritance diagram for flutter::GPUSurfaceGLImpeller:
flutter::Surface

Public Member Functions

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

Detailed Description

Definition at line 18 of file gpu_surface_gl_impeller.h.

Constructor & Destructor Documentation

◆ GPUSurfaceGLImpeller()

flutter::GPUSurfaceGLImpeller::GPUSurfaceGLImpeller ( GPUSurfaceGLDelegate delegate,
std::shared_ptr< impeller::Context context,
bool  render_to_surface 
)
explicit

Definition at line 15 of file gpu_surface_gl_impeller.cc.

19 : weak_factory_(this) {
20 if (delegate == nullptr) {
21 return;
22 }
23
24 if (!context || !context->IsValid()) {
25 return;
26 }
27
28 auto aiks_context = std::make_shared<impeller::AiksContext>(
30
31 if (!aiks_context->IsValid()) {
32 return;
33 }
34
35 delegate_ = delegate;
36 impeller_context_ = std::move(context);
37 render_to_surface_ = render_to_surface;
38 aiks_context_ = std::move(aiks_context);
39 is_valid_ = true;
40}
static std::shared_ptr< TypographerContext > Make()

References impeller::TypographerContextSkia::Make().

◆ ~GPUSurfaceGLImpeller()

flutter::GPUSurfaceGLImpeller::~GPUSurfaceGLImpeller ( )
overridedefault

Member Function Documentation

◆ IsValid()

bool flutter::GPUSurfaceGLImpeller::IsValid ( )
overridevirtual

Implements flutter::Surface.

Definition at line 46 of file gpu_surface_gl_impeller.cc.

46 {
47 return is_valid_;
48}

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