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

Interface implemented by all platform surfaces that can present a software backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the software backing store. More...

#include <gpu_surface_software_delegate.h>

Inheritance diagram for flutter::GPUSurfaceSoftwareDelegate:
flutter::AndroidSurfaceSoftware flutter::EmbedderSurfaceSoftware flutter::IOSSurfaceSoftware flutter::TesterPlatformView

Public Member Functions

 ~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

Interface implemented by all platform surfaces that can present a software backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the software backing store.

See also
|IOSSurfaceSoftware|, |AndroidSurfaceSoftware|, |EmbedderSurfaceSoftware|.

Definition at line 27 of file gpu_surface_software_delegate.h.

Constructor & Destructor Documentation

◆ ~GPUSurfaceSoftwareDelegate()

flutter::GPUSurfaceSoftwareDelegate::~GPUSurfaceSoftwareDelegate ( )
default

Member Function Documentation

◆ AcquireBackingStore()

virtual sk_sp< SkSurface > flutter::GPUSurfaceSoftwareDelegate::AcquireBackingStore ( const SkISize size)
pure virtual

Called when the GPU surface needs a new buffer to render a new frame into.

Parameters
[in]sizeThe size of the frame.
Returns
A raster surface returned by the platform.

Implemented in flutter::AndroidSurfaceSoftware, flutter::IOSSurfaceSoftware, and flutter::TesterPlatformView.

◆ PresentBackingStore()

virtual bool flutter::GPUSurfaceSoftwareDelegate::PresentBackingStore ( sk_sp< SkSurface backing_store)
pure virtual

Called by the platform when a frame has been rendered into the backing store and the platform must display it on-screen.

Parameters
[in]backing_storeThe software backing store to present.
Returns
Returns if the platform could present the backing store onto the screen.

Implemented in flutter::AndroidSurfaceSoftware, flutter::IOSSurfaceSoftware, and flutter::TesterPlatformView.


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