Flutter Engine
The Flutter Engine
|
#include <gpu_surface_metal_impeller.h>
Public Member Functions | |
GPUSurfaceMetalImpeller (GPUSurfaceMetalDelegate *delegate, const std::shared_ptr< impeller::Context > &context, bool render_to_surface=true) | |
~GPUSurfaceMetalImpeller () | |
bool | IsValid () override |
virtual Surface::SurfaceData | GetSurfaceData () const override |
Public Member Functions inherited from flutter::Surface | |
Surface () | |
virtual | ~Surface () |
virtual bool | IsValid ()=0 |
virtual std::unique_ptr< SurfaceFrame > | AcquireFrame (const SkISize &size)=0 |
virtual SkMatrix | GetRootTransformation () const =0 |
virtual GrDirectContext * | GetContext ()=0 |
virtual std::unique_ptr< GLContextResult > | MakeRenderContextCurrent () |
virtual bool | ClearRenderContext () |
virtual bool | AllowsDrawingWhenGpuDisabled () const |
virtual bool | EnableRasterCache () const |
virtual std::shared_ptr< impeller::AiksContext > | GetAiksContext () const |
virtual SurfaceData | GetSurfaceData () const |
Definition at line 21 of file gpu_surface_metal_impeller.h.
flutter::GPUSurfaceMetalImpeller::GPUSurfaceMetalImpeller | ( | GPUSurfaceMetalDelegate * | delegate, |
const std::shared_ptr< impeller::Context > & | context, | ||
bool | render_to_surface = true |
||
) |
Definition at line 34 of file gpu_surface_metal_impeller.mm.
|
default |
|
overridevirtual |
Capture the SurfaceData
currently present in the surface.
Not guaranteed to work on all setups and not intended to be used in production. The data field will be null if it was unable to work.
Reimplemented from flutter::Surface.
Definition at line 378 of file gpu_surface_metal_impeller.mm.
|
overridevirtual |
Implements flutter::Surface.
Definition at line 55 of file gpu_surface_metal_impeller.mm.