Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
flutter::SnapshotDelegate::GpuImageResult Struct Reference

A data structure used by the Skia implementation of deferred GPU based images. More...

#include <snapshot_delegate.h>

Public Member Functions

 GpuImageResult (const GrBackendTexture &p_texture, sk_sp< GrDirectContext > p_context, sk_sp< SkImage > p_image=nullptr, const std::string &p_error="")
 

Public Attributes

const GrBackendTexture texture
 
sk_sp< GrDirectContextcontext
 
sk_sp< SkImageimage
 
const std::string error
 

Detailed Description

A data structure used by the Skia implementation of deferred GPU based images.

Definition at line 26 of file snapshot_delegate.h.

Constructor & Destructor Documentation

◆ GpuImageResult()

flutter::SnapshotDelegate::GpuImageResult::GpuImageResult ( const GrBackendTexture p_texture,
sk_sp< GrDirectContext p_context,
sk_sp< SkImage p_image = nullptr,
const std::string &  p_error = "" 
)
inline

Definition at line 27 of file snapshot_delegate.h.

34 :
35#if !SLIMPELLER
36 texture(p_texture),
37#endif // !SLIMPELLER
38 context(std::move(p_context)),
39 image(std::move(p_image)),
40 error(p_error) {
41 }

Member Data Documentation

◆ context

sk_sp<GrDirectContext> flutter::SnapshotDelegate::GpuImageResult::context

Definition at line 48 of file snapshot_delegate.h.

◆ error

const std::string flutter::SnapshotDelegate::GpuImageResult::error

Definition at line 55 of file snapshot_delegate.h.

◆ image

sk_sp<SkImage> flutter::SnapshotDelegate::GpuImageResult::image

Definition at line 51 of file snapshot_delegate.h.

◆ texture

const GrBackendTexture flutter::SnapshotDelegate::GpuImageResult::texture

Definition at line 44 of file snapshot_delegate.h.


The documentation for this struct was generated from the following file: