Flutter Engine
flutter::AndroidSurface Class Referenceabstract

#include <android_surface.h>

Inheritance diagram for flutter::AndroidSurface:
flutter::AndroidSurfaceGL flutter::AndroidSurfaceMock flutter::AndroidSurfaceSoftware

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< SurfaceCreatePbufferSurface ()
 

Protected Member Functions

 AndroidSurface (const std::shared_ptr< AndroidContext > &android_context)
 

Protected Attributes

std::shared_ptr< AndroidContextandroid_context_
 

Detailed Description

Definition at line 21 of file android_surface.h.

Constructor & Destructor Documentation

◆ ~AndroidSurface()

flutter::AndroidSurface::~AndroidSurface ( )
virtualdefault

Referenced by AndroidSurface().

◆ AndroidSurface()

flutter::AndroidSurface::AndroidSurface ( const std::shared_ptr< AndroidContext > &  android_context)
explicitprotected

Definition at line 10 of file android_surface.cc.

References android_context_, FML_DCHECK, and ~AndroidSurface().

11  {
12  FML_DCHECK(android_context->IsValid());
13  android_context_ = android_context;
14 }
#define FML_DCHECK(condition)
Definition: logging.h:86
std::shared_ptr< AndroidContext > android_context_

Member Function Documentation

◆ CreateGPUSurface()

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

◆ CreatePbufferSurface()

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

Reimplemented in flutter::AndroidSurfaceGL.

Definition at line 18 of file android_surface.cc.

Referenced by flutter::AndroidSnapshotSurfaceProducer::CreateSnapshotSurface().

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

Member Data Documentation

◆ android_context_

std::shared_ptr<AndroidContext> flutter::AndroidSurface::android_context_
protected

Definition at line 45 of file android_surface.h.

Referenced by AndroidSurface(), and flutter::AndroidSurfaceGL::GetGLInterface().


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