#include <snapshot_controller.h>
|
| virtual | ~SnapshotController ()=default |
| |
| virtual void | MakeSkiaSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const sk_sp< SkImage > &)> callback, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual sk_sp< SkImage > | MakeSkiaSnapshotSync (sk_sp< DisplayList > display_list, DlISize picture_size, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual void | MakeImpellerSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const std::shared_ptr< impeller::Texture > &)> callback, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual std::shared_ptr< impeller::Texture > | MakeImpellerSnapshotSync (sk_sp< DisplayList > display_list, DlISize picture_size, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual sk_sp< SkImage > | MakeSkiaTextureImage (sk_sp< SkImage > image, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual std::shared_ptr< impeller::Texture > | MakeImpellerTextureImage (sk_sp< SkImage > image, SnapshotPixelFormat pixel_format)=0 |
| |
| virtual sk_sp< SkImage > | ConvertToRasterImage (sk_sp< SkImage > image)=0 |
| |
| virtual void | CacheRuntimeStage (const std::shared_ptr< impeller::RuntimeStage > &runtime_stage)=0 |
| |
| virtual bool | MakeRenderContextCurrent ()=0 |
| |
Definition at line 24 of file snapshot_controller.h.
◆ ~SnapshotController()
| virtual flutter::SnapshotController::~SnapshotController |
( |
| ) |
|
|
virtualdefault |
◆ SnapshotController()
| flutter::SnapshotController::SnapshotController |
( |
const Delegate & |
delegate | ) |
|
|
explicitprotected |
◆ 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 |
◆ Make()
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
23#if !SLIMPELLER
24 return std::make_unique<SnapshotControllerSkia>(delegate);
25#else
27 << "Cannot create a Skia snapshot controller in an Impeller build.";
28 return nullptr;
29#endif
30}
#define FML_LOG(severity)
References flutter::Settings::enable_impeller, and FML_LOG.
◆ MakeImpellerSnapshot()
◆ MakeImpellerSnapshotSync()
◆ MakeImpellerTextureImage()
◆ MakeRenderContextCurrent()
| virtual bool flutter::SnapshotController::MakeRenderContextCurrent |
( |
| ) |
|
|
pure virtual |
◆ MakeSkiaSnapshot()
| virtual void flutter::SnapshotController::MakeSkiaSnapshot |
( |
sk_sp< DisplayList > |
display_list, |
|
|
DlISize |
picture_size, |
|
|
std::function< void(const sk_sp< SkImage > &)> |
callback, |
|
|
SnapshotPixelFormat |
pixel_format |
|
) |
| |
|
pure virtual |
◆ MakeSkiaSnapshotSync()
◆ MakeSkiaTextureImage()
| virtual sk_sp< SkImage > flutter::SnapshotController::MakeSkiaTextureImage |
( |
sk_sp< SkImage > |
image, |
|
|
SnapshotPixelFormat |
pixel_format |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following files: