#include <snapshot_delegate.h>
|
| struct | GpuImageResult |
| | A data structure used by the Skia implementation of deferred GPU based images. More...
|
| |
|
| virtual std::unique_ptr< GpuImageResult > | MakeSkiaGpuImage (sk_sp< DisplayList > display_list, const SkImageInfo &image_info)=0 |
| | Attempts to create a GrBackendTexture for the specified DisplayList. May result in a raster bitmap if no GPU context is available.
|
| |
| virtual std::shared_ptr< TextureRegistry > | GetTextureRegistry ()=0 |
| | Gets the registry of external textures currently in use by the rasterizer. These textures may be updated at a cadence different from that of the Flutter application. When an external texture is referenced in the Flutter layer tree, that texture is composited within the Flutter layer tree.
|
| |
| virtual GrDirectContext * | GetGrContext ()=0 |
| |
| virtual void | MakeSkiaSnapshot (sk_sp< DisplayList > display_list, DlISize picture_size, std::function< void(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(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 28 of file snapshot_delegate.h.
◆ CacheRuntimeStage()
| virtual void flutter::SnapshotDelegate::CacheRuntimeStage |
( |
const std::shared_ptr< impeller::RuntimeStage > & |
runtime_stage | ) |
|
|
pure virtual |
Load and compile and initial PSO for the provided [runtime_stage].
Impeller only.
◆ ConvertToRasterImage()
| virtual sk_sp< SkImage > flutter::SnapshotDelegate::ConvertToRasterImage |
( |
sk_sp< SkImage > |
image | ) |
|
|
pure virtual |
◆ GetGrContext()
| virtual GrDirectContext * flutter::SnapshotDelegate::GetGrContext |
( |
| ) |
|
|
pure virtual |
◆ GetTextureRegistry()
| virtual std::shared_ptr< TextureRegistry > flutter::SnapshotDelegate::GetTextureRegistry |
( |
| ) |
|
|
pure virtual |
Gets the registry of external textures currently in use by the rasterizer. These textures may be updated at a cadence different from that of the Flutter application. When an external texture is referenced in the Flutter layer tree, that texture is composited within the Flutter layer tree.
- Returns
- A pointer to the external texture registry.
Implemented in flutter::Rasterizer.
◆ MakeImpellerSnapshot()
◆ MakeImpellerSnapshotSync()
◆ MakeImpellerTextureImage()
◆ MakeRenderContextCurrent()
| virtual bool flutter::SnapshotDelegate::MakeRenderContextCurrent |
( |
| ) |
|
|
pure virtual |
Bind a context to the current thread that can execute rendering commands.
Impeller only.
◆ MakeSkiaGpuImage()
| virtual std::unique_ptr< GpuImageResult > flutter::SnapshotDelegate::MakeSkiaGpuImage |
( |
sk_sp< DisplayList > |
display_list, |
|
|
const SkImageInfo & |
image_info |
|
) |
| |
|
pure virtual |
Attempts to create a GrBackendTexture for the specified DisplayList. May result in a raster bitmap if no GPU context is available.
◆ MakeSkiaSnapshot()
| virtual void flutter::SnapshotDelegate::MakeSkiaSnapshot |
( |
sk_sp< DisplayList > |
display_list, |
|
|
DlISize |
picture_size, |
|
|
std::function< void(sk_sp< SkImage >)> |
callback, |
|
|
SnapshotPixelFormat |
pixel_format |
|
) |
| |
|
pure virtual |
◆ MakeSkiaSnapshotSync()
◆ MakeSkiaTextureImage()
| virtual sk_sp< SkImage > flutter::SnapshotDelegate::MakeSkiaTextureImage |
( |
sk_sp< SkImage > |
image, |
|
|
SnapshotPixelFormat |
pixel_format |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: