Flutter Engine
The Flutter Engine
|
#include <snapshot_delegate.h>
Classes | |
struct | GpuImageResult |
A data structure used by the Skia implementation of deferred GPU based images. More... | |
Public Member Functions | |
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. More... | |
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. More... | |
virtual GrDirectContext * | GetGrContext ()=0 |
virtual void | MakeRasterSnapshot (sk_sp< DisplayList > display_list, SkISize picture_size, std::function< void(sk_sp< DlImage >)> callback)=0 |
virtual sk_sp< DlImage > | MakeRasterSnapshotSync (sk_sp< DisplayList > display_list, SkISize picture_size)=0 |
virtual sk_sp< SkImage > | ConvertToRasterImage (sk_sp< SkImage > image)=0 |
virtual void | CacheRuntimeStage (const std::shared_ptr< impeller::RuntimeStage > &runtime_stage)=0 |
Definition at line 21 of file snapshot_delegate.h.
|
pure virtual |
Load and compile and initial PSO for the provided [runtime_stage].
Impeller only.
|
pure virtual |
|
pure virtual |
Implemented in flutter::Rasterizer.
|
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.
Implemented in flutter::Rasterizer.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Attempts to create a GrBackendTexture for the specified DisplayList. May result in a raster bitmap if no GPU context is available.