Flutter Engine
The Flutter Engine
|
Abstract Base Class that represents where we will be rendering content. More...
#include <surface.h>
Classes | |
struct | SurfaceData |
A screenshot of the surface's raw data. More... | |
Public Member Functions | |
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 |
Abstract Base Class that represents where we will be rendering content.
|
default |
|
virtualdefault |
Reimplemented in flutter_runner::Surface.
|
pure virtual |
Implemented in flutter::GPUSurfaceGLSkia, flutter::GPUSurfaceSoftware, and flutter::GPUSurfaceVulkan.
|
virtual |
Reimplemented in flutter::GPUSurfaceGLSkia.
Definition at line 21 of file surface.cc.
|
virtual |
Reimplemented in flutter::GPUSurfaceGLSkia.
Definition at line 17 of file surface.cc.
|
virtual |
Reimplemented in flutter::TesterGPUSurfaceSoftware.
Definition at line 25 of file surface.cc.
|
virtual |
Definition at line 29 of file surface.cc.
|
pure virtual |
Implemented in flutter::GPUSurfaceGLSkia, flutter::GPUSurfaceSoftware, and flutter::GPUSurfaceVulkan.
|
pure virtual |
Implemented in flutter::GPUSurfaceGLSkia, flutter::GPUSurfaceSoftware, and flutter::GPUSurfaceVulkan.
|
virtual |
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 in flutter::GPUSurfaceMetalImpeller.
Definition at line 33 of file surface.cc.
|
pure virtual |
|
virtual |
Reimplemented in flutter::GPUSurfaceGLSkia.
Definition at line 13 of file surface.cc.