Flutter Engine
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, std::shared_ptr< PlatformViewAndroidJNI > jni_facade)
 
 ~AndroidSurfaceFactoryImpl () override
 
std::unique_ptr< AndroidSurfaceCreateSurface () override
 
- Public Member Functions inherited from flutter::AndroidSurfaceFactory
 AndroidSurfaceFactory ()=default
 
virtual ~AndroidSurfaceFactory ()=default
 

Detailed Description

Definition at line 27 of file platform_view_android.h.

Constructor & Destructor Documentation

◆ AndroidSurfaceFactoryImpl()

flutter::AndroidSurfaceFactoryImpl::AndroidSurfaceFactoryImpl ( const std::shared_ptr< AndroidContext > &  context,
std::shared_ptr< PlatformViewAndroidJNI jni_facade 
)

Definition at line 28 of file platform_view_android.cc.

References ~AndroidSurfaceFactoryImpl().

31  : android_context_(context), jni_facade_(jni_facade) {}

◆ ~AndroidSurfaceFactoryImpl()

flutter::AndroidSurfaceFactoryImpl::~AndroidSurfaceFactoryImpl ( )
overridedefault

Member Function Documentation

◆ CreateSurface()

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

Implements flutter::AndroidSurfaceFactory.

Definition at line 35 of file platform_view_android.cc.

References FML_DCHECK, flutter::kOpenGLES, and flutter::kSoftware.

35  {
36  switch (android_context_->RenderingApi()) {
38  return std::make_unique<AndroidSurfaceSoftware>(android_context_,
39  jni_facade_);
41  return std::make_unique<AndroidSurfaceGL>(android_context_, jni_facade_);
42  default:
43  FML_DCHECK(false);
44  return nullptr;
45  }
46 }
#define FML_DCHECK(condition)
Definition: logging.h:86

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