Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::AndroidSurfaceFactoryImpl Class Reference

#include <platform_view_android.h>

Inheritance diagram for flutter::AndroidSurfaceFactoryImpl:
flutter::AndroidSurfaceFactory

Public Member Functions

 AndroidSurfaceFactoryImpl (const std::shared_ptr< AndroidContext > &context, bool enable_impeller)
 
 ~AndroidSurfaceFactoryImpl () override
 
std::unique_ptr< AndroidSurfaceCreateSurface () override
 
- Public Member Functions inherited from flutter::AndroidSurfaceFactory
 AndroidSurfaceFactory ()=default
 
virtual ~AndroidSurfaceFactory ()=default
 
virtual std::unique_ptr< AndroidSurfaceCreateSurface ()=0
 

Detailed Description

Definition at line 28 of file platform_view_android.h.

Constructor & Destructor Documentation

◆ AndroidSurfaceFactoryImpl()

flutter::AndroidSurfaceFactoryImpl::AndroidSurfaceFactoryImpl ( const std::shared_ptr< AndroidContext > &  context,
bool  enable_impeller 
)

Definition at line 38 of file platform_view_android.cc.

41 : android_context_(context), enable_impeller_(enable_impeller) {}

◆ ~AndroidSurfaceFactoryImpl()

flutter::AndroidSurfaceFactoryImpl::~AndroidSurfaceFactoryImpl ( )
overridedefault

Member Function Documentation

◆ CreateSurface()

std::unique_ptr< AndroidSurface > flutter::AndroidSurfaceFactoryImpl::CreateSurface ( )
overridevirtual

Implements flutter::AndroidSurfaceFactory.

Definition at line 45 of file platform_view_android.cc.

45 {
46 switch (android_context_->RenderingApi()) {
48 return std::make_unique<AndroidSurfaceSoftware>();
50 return std::make_unique<AndroidSurfaceGLImpeller>(
51 std::static_pointer_cast<AndroidContextGLImpeller>(android_context_));
53 return std::make_unique<AndroidSurfaceGLSkia>(
54 std::static_pointer_cast<AndroidContextGLSkia>(android_context_));
56 return std::make_unique<AndroidSurfaceVulkanImpeller>(
57 std::static_pointer_cast<AndroidContextVulkanImpeller>(
58 android_context_));
59 }
61}
#define FML_UNREACHABLE()
Definition: logging.h:109

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