5#ifndef FLUTTER_LIB_UI_SNAPSHOT_DELEGATE_H_
6#define FLUTTER_LIB_UI_SNAPSHOT_DELEGATE_H_
10#include "flutter/common/graphics/texture.h"
11#include "flutter/display_list/display_list.h"
33 const std::string& p_error =
"")
93 const std::shared_ptr<impeller::RuntimeStage>& runtime_stage) = 0;
virtual std::shared_ptr< TextureRegistry > GetTextureRegistry()=0
Gets the registry of external textures currently in use by the rasterizer. These textures may be upda...
virtual void MakeRasterSnapshot(sk_sp< DisplayList > display_list, SkISize picture_size, std::function< void(sk_sp< DlImage >)> callback)=0
virtual sk_sp< SkImage > ConvertToRasterImage(sk_sp< SkImage > image)=0
virtual GrDirectContext * GetGrContext()=0
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...
virtual sk_sp< DlImage > MakeRasterSnapshotSync(sk_sp< DisplayList > display_list, SkISize picture_size)=0
virtual void CacheRuntimeStage(const std::shared_ptr< impeller::RuntimeStage > &runtime_stage)=0
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function
sk_sp< const SkImage > image
A data structure used by the Skia implementation of deferred GPU based images.
sk_sp< GrDirectContext > context
GpuImageResult(const GrBackendTexture &p_texture, sk_sp< GrDirectContext > p_context, sk_sp< SkImage > p_image=nullptr, const std::string &p_error="")
const GrBackendTexture texture