Flutter Engine
The Flutter Engine
Classes | Public Member Functions | List of all members
flutter::EmbedderSurfaceSoftware Class Referencefinal

#include <embedder_surface_software.h>

Inheritance diagram for flutter::EmbedderSurfaceSoftware:
flutter::EmbedderSurface flutter::GPUSurfaceSoftwareDelegate

Classes

struct  SoftwareDispatchTable
 

Public Member Functions

 EmbedderSurfaceSoftware (SoftwareDispatchTable software_dispatch_table, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder)
 
 ~EmbedderSurfaceSoftware () override
 
- Public Member Functions inherited from flutter::EmbedderSurface
 EmbedderSurface ()
 
virtual ~EmbedderSurface ()
 
virtual bool IsValid () const =0
 
virtual std::unique_ptr< SurfaceCreateGPUSurface ()=0
 
virtual std::shared_ptr< impeller::ContextCreateImpellerContext () const
 
virtual sk_sp< GrDirectContextCreateResourceContext () const
 
- Public Member Functions inherited from flutter::GPUSurfaceSoftwareDelegate
 ~GPUSurfaceSoftwareDelegate ()
 
virtual sk_sp< SkSurfaceAcquireBackingStore (const SkISize &size)=0
 Called when the GPU surface needs a new buffer to render a new frame into. More...
 
virtual bool PresentBackingStore (sk_sp< SkSurface > backing_store)=0
 Called by the platform when a frame has been rendered into the backing store and the platform must display it on-screen. More...
 

Detailed Description

Definition at line 17 of file embedder_surface_software.h.

Constructor & Destructor Documentation

◆ EmbedderSurfaceSoftware()

flutter::EmbedderSurfaceSoftware::EmbedderSurfaceSoftware ( SoftwareDispatchTable  software_dispatch_table,
std::shared_ptr< EmbedderExternalViewEmbedder external_view_embedder 
)

Definition at line 18 of file embedder_surface_software.cc.

21 : software_dispatch_table_(std::move(software_dispatch_table)),
22 external_view_embedder_(std::move(external_view_embedder)) {
23 if (!software_dispatch_table_.software_present_backing_store) {
24 return;
25 }
26 valid_ = true;
27}
std::function< bool(const void *allocation, size_t row_bytes, size_t height)> software_present_backing_store

◆ ~EmbedderSurfaceSoftware()

flutter::EmbedderSurfaceSoftware::~EmbedderSurfaceSoftware ( )
overridedefault

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