#include <snapshot_controller_impeller.h>
Public Member Functions | |
| SnapshotControllerImpeller (const SnapshotController::Delegate &delegate) | |
| void | MakeRasterSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(const sk_sp< DlImage > &)> callback, SnapshotPixelFormat pixel_format) override |
| sk_sp< DlImage > | MakeRasterSnapshotSync (sk_sp< DisplayList > display_list, DlISize picture_size, SnapshotPixelFormat pixel_format) override |
| sk_sp< DlImage > | MakeTextureImage (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 239 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 253 of file snapshot_controller_impeller.cc.
References FML_UNREACHABLE.
|
overridevirtual |
Implements flutter::SnapshotController.
Definition at line 116 of file snapshot_controller_impeller.cc.
References callback, flutter::SnapshotController::Delegate::GetAiksContext(), flutter::SnapshotController::GetDelegate(), flutter::SnapshotController::Delegate::GetIsGpuDisabledSyncSwitch(), flutter::DlImage::kRaster, and impeller::DlImageImpeller::Make().
|
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 258 of file snapshot_controller_impeller.cc.
References flutter::SnapshotController::GetDelegate(), flutter::SnapshotController::Delegate::GetSurface(), and surface.
|
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.
References flutter::buffer, impeller::TextureDescriptor::format, flutter::SnapshotController::Delegate::GetAiksContext(), flutter::SnapshotController::GetDelegate(), image, impeller::kDevicePrivate, impeller::kHostVisible, impeller::kR8G8B8A8UNormInt, flutter::DlImage::kRaster, impeller::DlImageImpeller::Make(), impeller::TextureDescriptor::mip_count, impeller::TextureDescriptor::size, impeller::DeviceBufferDescriptor::storage_mode, impeller::TextureDescriptor::storage_mode, and texture.