Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::testing::DlMetalSurfaceInstance Class Reference
Inheritance diagram for flutter::testing::DlMetalSurfaceInstance:
flutter::testing::DlSurfaceInstanceSkiaBase flutter::testing::DlSurfaceInstance

Public Member Functions

 DlMetalSurfaceInstance (std::unique_ptr< TestMetalSurface > metal_surface)
 
 ~DlMetalSurfaceInstance ()=default
 
- Public Member Functions inherited from flutter::testing::DlSurfaceInstanceSkiaBase
void Clear (const DlColor &color) override
 Clear the entire surface to the indicated color.
 
DlCanvasGetCanvas () override
 
void RenderDisplayList (const sk_sp< DisplayList > &display_list) override
 
void FlushSubmitCpuSync () override
 
std::unique_ptr< DlPixelDataSnapshotToPixelData () const override
 
sk_sp< DlImageSnapshotToImage () const override
 
bool SnapshotToFile (std::string &filename) const override
 Store a snapshot of this Surface to the file indicated by the filename.
 
int width () const override
 The width of the underlying surface.
 
int height () const override
 The height of the underlying surface.
 
sk_sp< SkSurface > sk_surface () override
 
- Public Member Functions inherited from flutter::testing::DlSurfaceInstance
virtual ~DlSurfaceInstance ()=default
 
DlISize GetSize () const
 The size of the underlying surface.
 

Protected Member Functions

sk_sp< SkSurface > GetSurface () const override
 
- Protected Member Functions inherited from flutter::testing::DlSurfaceInstanceSkiaBase
 DlSurfaceInstanceSkiaBase ()
 
virtual ~DlSurfaceInstanceSkiaBase ()
 

Detailed Description

Definition at line 21 of file dl_test_surface_provider_skia_metal.mm.

Constructor & Destructor Documentation

◆ DlMetalSurfaceInstance()

flutter::testing::DlMetalSurfaceInstance::DlMetalSurfaceInstance ( std::unique_ptr< TestMetalSurface metal_surface)
inlineexplicit

Definition at line 23 of file dl_test_surface_provider_skia_metal.mm.

24 : DlSurfaceInstanceSkiaBase(), metal_surface_(std::move(metal_surface)) {}

◆ ~DlMetalSurfaceInstance()

flutter::testing::DlMetalSurfaceInstance::~DlMetalSurfaceInstance ( )
default

Member Function Documentation

◆ GetSurface()

sk_sp< SkSurface > flutter::testing::DlMetalSurfaceInstance::GetSurface ( ) const
inlineoverrideprotectedvirtual

Implements flutter::testing::DlSurfaceInstanceSkiaBase.

Definition at line 28 of file dl_test_surface_provider_skia_metal.mm.

28{ return metal_surface_->GetSurface(); }

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