Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
flutter::AndroidSurface Class Referenceabstract

#include <android_surface.h>

Inheritance diagram for flutter::AndroidSurface:
flutter::AndroidSurfaceGLImpeller flutter::AndroidSurfaceGLSkia flutter::AndroidSurfaceMock flutter::AndroidSurfaceSoftware flutter::AndroidSurfaceVulkanImpeller

Public Member Functions

virtual ~AndroidSurface ()
 
virtual bool IsValid () const =0
 
virtual void TeardownOnScreenContext ()=0
 
virtual std::unique_ptr< SurfaceCreateGPUSurface (GrDirectContext *gr_context=nullptr)=0
 
virtual bool OnScreenSurfaceResize (const SkISize &size)=0
 
virtual bool ResourceContextMakeCurrent ()=0
 
virtual bool ResourceContextClearCurrent ()=0
 
virtual bool SetNativeWindow (fml::RefPtr< AndroidNativeWindow > window)=0
 
virtual std::unique_ptr< SurfaceCreateSnapshotSurface ()
 
virtual std::shared_ptr< impeller::ContextGetImpellerContext ()
 

Protected Member Functions

 AndroidSurface ()
 

Detailed Description

Definition at line 25 of file android_surface.h.

Constructor & Destructor Documentation

◆ ~AndroidSurface()

flutter::AndroidSurface::~AndroidSurface ( )
virtualdefault

◆ AndroidSurface()

flutter::AndroidSurface::AndroidSurface ( )
protecteddefault

Member Function Documentation

◆ CreateGPUSurface()

virtual std::unique_ptr< Surface > flutter::AndroidSurface::CreateGPUSurface ( GrDirectContext gr_context = nullptr)
pure virtual

◆ CreateSnapshotSurface()

std::unique_ptr< Surface > flutter::AndroidSurface::CreateSnapshotSurface ( )
virtual

Reimplemented in flutter::AndroidSurfaceGLImpeller, and flutter::AndroidSurfaceGLSkia.

Definition at line 14 of file android_surface.cc.

14 {
15 return nullptr;
16}

◆ GetImpellerContext()

std::shared_ptr< impeller::Context > flutter::AndroidSurface::GetImpellerContext ( )
virtual

Reimplemented in flutter::AndroidSurfaceGLImpeller, and flutter::AndroidSurfaceVulkanImpeller.

Definition at line 18 of file android_surface.cc.

18 {
19 return nullptr;
20}

◆ IsValid()

virtual bool flutter::AndroidSurface::IsValid ( ) const
pure virtual

◆ OnScreenSurfaceResize()

virtual bool flutter::AndroidSurface::OnScreenSurfaceResize ( const SkISize size)
pure virtual

◆ ResourceContextClearCurrent()

virtual bool flutter::AndroidSurface::ResourceContextClearCurrent ( )
pure virtual

◆ ResourceContextMakeCurrent()

virtual bool flutter::AndroidSurface::ResourceContextMakeCurrent ( )
pure virtual

◆ SetNativeWindow()

virtual bool flutter::AndroidSurface::SetNativeWindow ( fml::RefPtr< AndroidNativeWindow window)
pure virtual

◆ TeardownOnScreenContext()

virtual void flutter::AndroidSurface::TeardownOnScreenContext ( )
pure virtual

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