Flutter Engine
The Flutter Engine
|
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>
Public Member Functions | |
~GPUSurfaceSoftwareDelegate () | |
virtual sk_sp< SkSurface > | AcquireBackingStore (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... | |
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.
Definition at line 27 of file gpu_surface_software_delegate.h.
|
default |
|
pure virtual |
Called when the GPU surface needs a new buffer to render a new frame into.
[in] | size | The size of the frame. |
Implemented in flutter::AndroidSurfaceSoftware, flutter::IOSSurfaceSoftware, and flutter::TesterPlatformView.
|
pure virtual |
Called by the platform when a frame has been rendered into the backing store and the platform must display it on-screen.
[in] | backing_store | The software backing store to present. |
Implemented in flutter::AndroidSurfaceSoftware, flutter::IOSSurfaceSoftware, and flutter::TesterPlatformView.