Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
flutter::SnapshotController Class Referenceabstract

#include <snapshot_controller.h>

Inheritance diagram for flutter::SnapshotController:
flutter::SnapshotControllerImpeller flutter::SnapshotControllerSkia

Classes

class  Delegate
 

Public Member Functions

virtual ~SnapshotController ()=default
 
virtual sk_sp< DlImageMakeRasterSnapshot (sk_sp< DisplayList > display_list, SkISize size)=0
 
virtual sk_sp< SkImageConvertToRasterImage (sk_sp< SkImage > image)=0
 
virtual void CacheRuntimeStage (const std::shared_ptr< impeller::RuntimeStage > &runtime_stage)=0
 

Static Public Member Functions

static std::unique_ptr< SnapshotControllerMake (const Delegate &delegate, const Settings &settings)
 

Protected Member Functions

 SnapshotController (const Delegate &delegate)
 
const DelegateGetDelegate ()
 

Detailed Description

Definition at line 21 of file snapshot_controller.h.

Constructor & Destructor Documentation

◆ ~SnapshotController()

virtual flutter::SnapshotController::~SnapshotController ( )
virtualdefault

◆ SnapshotController()

flutter::SnapshotController::SnapshotController ( const Delegate delegate)
explicitprotected

Definition at line 26 of file snapshot_controller.cc.

27 : delegate_(delegate) {}

Member Function Documentation

◆ CacheRuntimeStage()

virtual void flutter::SnapshotController::CacheRuntimeStage ( const std::shared_ptr< impeller::RuntimeStage > &  runtime_stage)
pure virtual

◆ ConvertToRasterImage()

virtual sk_sp< SkImage > flutter::SnapshotController::ConvertToRasterImage ( sk_sp< SkImage image)
pure virtual

◆ GetDelegate()

const Delegate & flutter::SnapshotController::GetDelegate ( )
inlineprotected

Definition at line 52 of file snapshot_controller.h.

52{ return delegate_; }

◆ Make()

std::unique_ptr< SnapshotController > flutter::SnapshotController::Make ( const Delegate delegate,
const Settings settings 
)
static

Definition at line 15 of file snapshot_controller.cc.

17 {
18#if IMPELLER_SUPPORTS_RENDERING
19 if (settings.enable_impeller) {
20 return std::make_unique<SnapshotControllerImpeller>(delegate);
21 }
22#endif // IMPELLER_SUPPORTS_RENDERING
23 return std::make_unique<SnapshotControllerSkia>(delegate);
24}

◆ MakeRasterSnapshot()

virtual sk_sp< DlImage > flutter::SnapshotController::MakeRasterSnapshot ( sk_sp< DisplayList display_list,
SkISize  size 
)
pure virtual

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