Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::DlMetalSurfaceInstance Class Reference
Inheritance diagram for flutter::testing::DlMetalSurfaceInstance:
flutter::testing::DlSurfaceInstance

Public Member Functions

 DlMetalSurfaceInstance (std::unique_ptr< TestMetalSurface > metal_surface)
 
 ~DlMetalSurfaceInstance ()=default
 
sk_sp< SkSurfacesk_surface () const override
 
- Public Member Functions inherited from flutter::testing::DlSurfaceInstance
virtual ~DlSurfaceInstance ()=default
 
virtual sk_sp< SkSurfacesk_surface () const =0
 
int width () const
 
int height () const
 

Detailed Description

Definition at line 16 of file dl_test_surface_metal.cc.

Constructor & Destructor Documentation

◆ DlMetalSurfaceInstance()

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

Definition at line 18 of file dl_test_surface_metal.cc.

20 : metal_surface_(std::move(metal_surface)) {}

◆ ~DlMetalSurfaceInstance()

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

Member Function Documentation

◆ sk_surface()

sk_sp< SkSurface > flutter::testing::DlMetalSurfaceInstance::sk_surface ( ) const
inlineoverridevirtual

Implements flutter::testing::DlSurfaceInstance.

Definition at line 23 of file dl_test_surface_metal.cc.

23 {
24 return metal_surface_->GetSurface();
25 }

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