#include <snapshot_controller_impeller.h>
Public Member Functions | |
| SnapshotControllerImpeller (const SnapshotController::Delegate &delegate) | |
| void | MakeSkiaSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const sk_sp< SkImage > &)> callback, SnapshotPixelFormat pixel_format) override |
| sk_sp< SkImage > | MakeSkiaSnapshotSync (sk_sp< DisplayList > display_list, DlISize size, SnapshotPixelFormat pixel_format) override |
| void | MakeImpellerSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const std::shared_ptr< impeller::Texture > &)> callback, SnapshotPixelFormat pixel_format) override |
| std::shared_ptr< impeller::Texture > | MakeImpellerSnapshotSync (sk_sp< DisplayList > display_list, DlISize picture_size, SnapshotPixelFormat pixel_format) override |
| sk_sp< SkImage > | MakeSkiaTextureImage (sk_sp< SkImage > image, SnapshotPixelFormat pixel_format) override |
| std::shared_ptr< impeller::Texture > | MakeImpellerTextureImage (sk_sp< SkImage > image, SnapshotPixelFormat pixel_format) override |
| sk_sp< SkImage > | ConvertToRasterImage (sk_sp< SkImage > image) override |
| void | CacheRuntimeStage (const std::shared_ptr< impeller::RuntimeStage > &runtime_stage) override |
| virtual bool | MakeRenderContextCurrent () override |
Public Member Functions inherited from flutter::SnapshotController | |
| virtual | ~SnapshotController ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from flutter::SnapshotController | |
| static std::unique_ptr< SnapshotController > | Make (const Delegate &delegate, const Settings &settings) |
Protected Member Functions inherited from flutter::SnapshotController | |
| SnapshotController (const Delegate &delegate) | |
| const Delegate & | GetDelegate () |
Definition at line 13 of file snapshot_controller_impeller.h.
|
inlineexplicit |
Definition at line 15 of file snapshot_controller_impeller.h.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 245 of file snapshot_controller_impeller.cc.
References impeller::RuntimeEffectContents::BootstrapShader(), flutter::SnapshotController::Delegate::GetAiksContext(), flutter::SnapshotController::GetDelegate(), and impeller::RuntimeEffectContents::SetRuntimeStage().
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 259 of file snapshot_controller_impeller.cc.
References FML_UNREACHABLE.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 130 of file snapshot_controller_impeller.cc.
References callback, flutter::SnapshotController::Delegate::GetAiksContext(), flutter::SnapshotController::GetDelegate(), and flutter::SnapshotController::Delegate::GetIsGpuDisabledSyncSwitch().
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 162 of file snapshot_controller_impeller.cc.
References flutter::SnapshotController::GetDelegate().
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 177 of file snapshot_controller_impeller.cc.
References flutter::buffer, impeller::TextureDescriptor::format, flutter::SnapshotController::Delegate::GetAiksContext(), flutter::SnapshotController::GetDelegate(), image, impeller::kDevicePrivate, impeller::kHostVisible, impeller::kR8G8B8A8UNormInt, impeller::TextureDescriptor::mip_count, impeller::TextureDescriptor::size, impeller::DeviceBufferDescriptor::storage_mode, impeller::TextureDescriptor::storage_mode, and texture.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 264 of file snapshot_controller_impeller.cc.
References flutter::SnapshotController::GetDelegate(), flutter::SnapshotController::Delegate::GetSurface(), and surface.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 115 of file snapshot_controller_impeller.cc.
References FML_UNREACHABLE.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 123 of file snapshot_controller_impeller.cc.
References FML_UNREACHABLE.
|
overridevirtual |
Creates a texture-backed DlImage from the provided SkImage.
This is primarily used by decodeImageFromPixelsSync to upload pixels to the GPU synchronously.
Implements flutter::SnapshotController.
Definition at line 170 of file snapshot_controller_impeller.cc.